]> xenbits.xensource.com Git - libvirt.git/commitdiff
network: Fix segfault on daemon reload
authorCole Robinson <crobinso@redhat.com>
Sun, 24 Apr 2016 21:37:13 +0000 (17:37 -0400)
committerCole Robinson <crobinso@redhat.com>
Mon, 2 May 2016 14:06:04 +0000 (10:06 -0400)
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

index 45248d5d6ad5116bf92537089c6542b92c6ee296..a34da2aac00557a98025ebcd45c585f42609a46f 100644 (file)
@@ -769,7 +769,7 @@ networkStateReload(void)
     networkRefreshDaemons(network_driver);
     virNetworkObjListForEach(network_driver->networks,
                              networkAutostartConfig,
-                             NULL);
+                             network_driver);
     return 0;
 }