* src/qemu_driver.c: patch from Guido Günther, interface stats should
not crash on interfaces without an ifname. Daniel
This commit is contained in:
parent
c05cf3f3e1
commit
55e1221686
@ -1,3 +1,8 @@
|
|||||||
|
Wed Jul 30 11:18:50 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
|
* src/qemu_driver.c: patch from Guido Günther, interface stats should
|
||||||
|
not crash on interfaces without an ifname.
|
||||||
|
|
||||||
Wed Jul 30 10:51:12 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
Wed Jul 30 10:51:12 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* src/storage_backend_logical.c: patch from David Lively fixing
|
* src/storage_backend_logical.c: patch from David Lively fixing
|
||||||
|
@ -3242,7 +3242,7 @@ qemudDomainInterfaceStats (virDomainPtr dom,
|
|||||||
|
|
||||||
/* Check the path is one of the domain's network interfaces. */
|
/* Check the path is one of the domain's network interfaces. */
|
||||||
for (net = vm->def->nets; net; net = net->next) {
|
for (net = vm->def->nets; net; net = net->next) {
|
||||||
if (STREQ (net->ifname, path))
|
if (net->ifname && STREQ (net->ifname, path))
|
||||||
goto ok;
|
goto ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user