]> git.ipfire.org Git - thirdparty/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>
Wed, 4 May 2016 23:10:43 +0000 (19:10 -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

(cherry picked from commit 26af7e4e932d72e7ead88e2e687b3ee0ca4718bb)

src/network/bridge_driver.c

index 4ff95519bb64ccb2a15ed6b73d2f03100df86bc6..1021394a9971c0263eb2b8007a36a9dd75a1b104 100644 (file)
@@ -769,7 +769,7 @@ networkStateReload(void)
     networkRefreshDaemons(network_driver);
     virNetworkObjListForEach(network_driver->networks,
                              networkAutostartConfig,
-                             NULL);
+                             network_driver);
     return 0;
 }