mirror of https://gitee.com/openkylin/libvirt.git
Fix segfault if starting qemu VM with an inactive virtual network.
This commit is contained in:
parent
a588bf5514
commit
8206b421d6
|
@ -1,3 +1,8 @@
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue