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

Message ID 23998211b70b874624b45c6c449d0327211588a9.1461540078.git.crobinso@redhat.com
State New
Headers show

Commit Message

Cole Robinson April 24, 2016, 11:22 p.m.
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(-)

-- 
2.7.3

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Patch hide | download patch | download mbox

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;
 }