diff --git a/ChangeLog b/ChangeLog index ab4f80198c..ce0fc84119 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Jul 30 11:18:50 CEST 2008 Daniel Veillard + + * 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 * src/storage_backend_logical.c: patch from David Lively fixing diff --git a/src/qemu_driver.c b/src/qemu_driver.c index b8fd11c857..9d661d22bc 100644 --- a/src/qemu_driver.c +++ b/src/qemu_driver.c @@ -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; }