We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a75dfbc commit 8d89604Copy full SHA for 8d89604
src/mroute.c
@@ -309,9 +309,9 @@ static int mroute4_del_vif(struct iface *iface)
309
rc = -1;
310
}
311
312
- if (iface->vif >= 0 && iface->vif < ALL_VIFS)
+ if (iface->vif != ALL_VIFS)
313
mroute4_prune_vif(iface->vif);
314
- iface->vif = -1;
+ iface->vif = ALL_VIFS;
315
316
return rc;
317
@@ -911,9 +911,9 @@ static int mroute6_del_mif(struct iface *iface)
911
912
913
914
- if (iface->mif >= 0 && iface->mif < ALL_VIFS)
+ if (iface->mif != ALL_VIFS)
915
mroute6_prune_mif(iface->mif);
916
- iface->mif = -1;
+ iface->mif = ALL_VIFS;
917
918
919
0 commit comments