Fix KASSERT introduced in r282155.

Found by:	dhw
This commit is contained in:
Alexander V. Chernikov 2015-04-30 21:51:12 +00:00
parent 0a06cffc15
commit caf993912e

View File

@ -3399,9 +3399,10 @@ ref_rule_objects(struct ip_fw_chain *ch, struct ip_fw *rule,
IPFW_UH_WUNLOCK(ch);
KASSERT(found + unresolved == ci->object_opcodes,
("refcount incosistency: found: %d unr: %d total: %d",
found, unresolved, ci->object_opcodes));
found = pidx - oib;
KASSERT(found == ci->object_opcodes,
("refcount inconsistency: found: %d total: %d",
found, ci->object_opcodes));
/* Perform auto-creation for non-existing objects */
if (numnew != 0)