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:
John Ferlan 2017-05-25 09:35:58 -04:00
parent d53224b7a5
commit 69979369bb
1 changed files with 2 additions and 2 deletions

View File

@ -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;