* 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:
Daniel Veillard 2008-07-30 09:20:19 +00:00
parent c05cf3f3e1
commit 55e1221686
2 changed files with 6 additions and 1 deletions

View File

@ -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>
* src/storage_backend_logical.c: patch from David Lively fixing

View File

@ -3242,7 +3242,7 @@ qemudDomainInterfaceStats (virDomainPtr dom,
/* Check the path is one of the domain's network interfaces. */
for (net = vm->def->nets; net; net = net->next) {
if (STREQ (net->ifname, path))
if (net->ifname && STREQ (net->ifname, path))
goto ok;
}