mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
nwfilter: Fix return value comparison for virNWFilterTriggerVMFilterRebuild
Should compare < 0 to be correct. Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
d53224b7a5
commit
69979369bb
@ -253,7 +253,7 @@ virNWFilterObjTestUnassignDef(virNWFilterObjPtr obj)
|
||||
|
||||
obj->wantRemoved = true;
|
||||
/* trigger the update on VMs referencing the filter */
|
||||
if (virNWFilterTriggerVMFilterRebuild())
|
||||
if (virNWFilterTriggerVMFilterRebuild() < 0)
|
||||
rc = -1;
|
||||
|
||||
obj->wantRemoved = false;
|
||||
@ -345,7 +345,7 @@ virNWFilterObjListAssignDef(virNWFilterObjListPtr nwfilters,
|
||||
|
||||
obj->newDef = def;
|
||||
/* trigger the update on VMs referencing the filter */
|
||||
if (virNWFilterTriggerVMFilterRebuild()) {
|
||||
if (virNWFilterTriggerVMFilterRebuild() < 0) {
|
||||
obj->newDef = NULL;
|
||||
virNWFilterObjUnlock(obj);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user