]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
* src/qemu_driver.c: patch from Guido Günther, interface stats should
authorDaniel Veillard <veillard@redhat.com>
Wed, 30 Jul 2008 09:20:19 +0000 (09:20 +0000)
committerDaniel Veillard <veillard@redhat.com>
Wed, 30 Jul 2008 09:20:19 +0000 (09:20 +0000)
  not crash on interfaces without an ifname.
Daniel

ChangeLog
src/qemu_driver.c

index ab4f80198c05e882229f571745e503f419fb03c2..ce0fc84119e0a5e7474234e9b2a4bcb30fd7fb8b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index b8fd11c8574a49173398cc5bc81e9051ced436eb..9d661d22bc5858cd5ff3ea4df62e38df6a3aa865 100644 (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;
     }