From: Peter Krempa Date: Wed, 17 Apr 2013 08:13:35 +0000 (+0200) Subject: network: remove autostart flag from network when undefining it X-Git-Tag: v1.0.5-rc1~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45012bc85b71cf26096bbb20278cdd8c25ef9bb8;p=thirdparty%2Flibvirt.git network: remove autostart flag from network when undefining it When turning a started persistent network into a transient one we forgot to remove the autostart flag that is no longer valid at that point. --- diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c index 3b279801f1..6ea09faad8 100644 --- a/src/network/bridge_driver.c +++ b/src/network/bridge_driver.c @@ -3192,6 +3192,7 @@ networkUndefine(virNetworkPtr net) { /* make the network transient */ network->persistent = 0; + network->autostart = 0; virNetworkDefFree(network->newDef); network->newDef = NULL;