[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[libvirt] [PATCH] don't dump core on NULL ifname
- From: Guido Günther <agx sigxcpu org>
- To: libvir-list redhat com
- Subject: [libvirt] [PATCH] don't dump core on NULL ifname
- Date: Tue, 29 Jul 2008 13:22:32 -0400
Hi,
actually I thought I sent this out already, but it seems I didn't:
Don't dump core on NULL ifname when getting interface statistic.
Not all networking types have a target ifname set
(user,client,server,mcast).
Cheers,
-- Guido
[PATCH] don't dump core on NULL ifname
not all networking types have a target ifname set
(user,client,server,mcast)
---
src/qemu_driver.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/qemu_driver.c b/src/qemu_driver.c
index b8fd11c..9d661d2 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;
}
--
1.5.6.3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]