network: Fix segfault on daemon reload

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)
This commit is contained in:
Cole Robinson 2016-04-24 17:37:13 -04:00
parent 6bc1f546de
commit 1083c0bd71

View File

@ -769,7 +769,7 @@ networkStateReload(void)
networkRefreshDaemons(network_driver);
virNetworkObjListForEach(network_driver->networks,
networkAutostartConfig,
NULL);
network_driver);
return 0;
}