提交 947230fb 编写于 作者: P Peter Krempa

conf: net: Fix helper for applying new network definition

When there's no new definition the helper overwrote the old one with
NULL.
上级 d055498d
...@@ -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.
先完成此消息的编辑!
想要评论请 注册