From: Daniel Veillard Date: Wed, 30 Jul 2008 09:20:19 +0000 (+0000) Subject: * src/qemu_driver.c: patch from Guido Günther, interface stats should X-Git-Tag: LIBVIRT_0_4_6~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55e1221686569f4e6104541a885798d0cb798d30;p=thirdparty%2Flibvirt.git * src/qemu_driver.c: patch from Guido Günther, interface stats should not crash on interfaces without an ifname. Daniel --- 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; }