[libvirt] [PATCH 1/4] network: Fix segfault on daemon reload

Cole Robinson crobinso at redhat.com
Sun Apr 24 23:22:49 UTC 2016


We will segfault of a daemon reload picks up a new network config
that needs to be autostarted. We shouldn't be passing NULL for
network_driver here. This seems like it was missed in the larger
rework in commit 1009a61e
---
 src/network/bridge_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c
index 29c5feb..21e43af 100644
--- a/src/network/bridge_driver.c
+++ b/src/network/bridge_driver.c
@@ -769,7 +769,7 @@ networkStateReload(void)
     networkRefreshDaemons(network_driver);
     virNetworkObjListForEach(network_driver->networks,
                              networkAutostartConfig,
-                             NULL);
+                             network_driver);
     return 0;
 }
 
-- 
2.7.3




More information about the libvir-list mailing list