mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-30 17:45:23 +00:00
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 947230fb56
)
This commit is contained in:
parent
9a5430414d
commit
43995ddcc4
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user