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
-- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list