mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
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>
|
Mon Oct 6 15:23:00 EST 2008 Cole Robinson <crobinso@redhat.com>
|
||||||
|
|
||||||
* tests/domainschematest: Slim down schema test result output
|
* tests/domainschematest: Slim down schema test result output
|
||||||
|
@ -1235,7 +1235,7 @@ int qemudBuildCommandLine(virConnectPtr conn,
|
|||||||
error:
|
error:
|
||||||
if (tapfds &&
|
if (tapfds &&
|
||||||
*tapfds) {
|
*tapfds) {
|
||||||
for (i = 0; ntapfds; i++)
|
for (i = 0; i < *ntapfds; i++)
|
||||||
close((*tapfds)[i]);
|
close((*tapfds)[i]);
|
||||||
VIR_FREE(*tapfds);
|
VIR_FREE(*tapfds);
|
||||||
*ntapfds = 0;
|
*ntapfds = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user