From 55e1221686569f4e6104541a885798d0cb798d30 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 30 Jul 2008 09:20:19 +0000 Subject: [PATCH] =?UTF-8?q?*=20src/qemu=5Fdriver.c:=20patch=20from=20Guido?= =?UTF-8?q?=20G=C3=BCnther,=20interface=20stats=20should=20=20=20not=20cra?= =?UTF-8?q?sh=20on=20interfaces=20without=20an=20ifname.=20Daniel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChangeLog | 5 +++++ src/qemu_driver.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; }