提交 43995ddc 编写于 作者: P Peter Krempa 提交者: Cole Robinson

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 947230fb)
上级 9a543041
...@@ -359,7 +359,7 @@ virNetworkObjSetDefTransient(virNetworkObjPtr network, bool live) ...@@ -359,7 +359,7 @@ virNetworkObjSetDefTransient(virNetworkObjPtr network, bool live)
void void
virNetworkObjUnsetDefTransient(virNetworkObjPtr network) virNetworkObjUnsetDefTransient(virNetworkObjPtr network)
{ {
if (network->def) { if (network->newDef) {
virNetworkDefFree(network->def); virNetworkDefFree(network->def);
network->def = network->newDef; network->def = network->newDef;
network->newDef = NULL; network->newDef = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册