提交 8206b421 编写于 作者: C Cole Robinson

Fix segfault if starting qemu VM with an inactive virtual network.

上级 a588bf55
Mon Oct 6 15:32:00 EST 2008 Cole Robinson <crobinso@redhat.com>
* src/qemu_conf.c: Fix possible segfault if starting a qemu guest with
with an inactive virtual network.
Mon Oct 6 15:23:00 EST 2008 Cole Robinson <crobinso@redhat.com>
* tests/domainschematest: Slim down schema test result output
......
......@@ -1235,7 +1235,7 @@ int qemudBuildCommandLine(virConnectPtr conn,
error:
if (tapfds &&
*tapfds) {
for (i = 0; ntapfds; i++)
for (i = 0; i < *ntapfds; i++)
close((*tapfds)[i]);
VIR_FREE(*tapfds);
*ntapfds = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册