From 43995ddcc41b6de80375bc97ed800f6e9368276f Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 25 Oct 2012 17:06:04 +0200 Subject: [PATCH] conf: net: Fix helper for applying new network definition When there's no new definition the helper overwrote the old one with NULL. (cherry picked from commit 947230fb56325c86d318215a3e6c9cdb379dc966) --- src/conf/network_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf/network_conf.c b/src/conf/network_conf.c index 9187de1660..a7b297a6a0 100644 --- a/src/conf/network_conf.c +++ b/src/conf/network_conf.c @@ -359,7 +359,7 @@ virNetworkObjSetDefTransient(virNetworkObjPtr network, bool live) void virNetworkObjUnsetDefTransient(virNetworkObjPtr network) { - if (network->def) { + if (network->newDef) { virNetworkDefFree(network->def); network->def = network->newDef; network->newDef = NULL;