Remove now obsolete KASSERT.
Actually, object classify callbacks can skip some opcodes, that could be rewritten. We will deteremine real numbed of rewritten opcodes a bit later in this function. Reported by: David H. Wolfskill <david at catwhisker dot org>
This commit is contained in:
parent
e4e2a6c642
commit
ee09cb0bfb
@ -3388,14 +3388,8 @@ ref_rule_objects(struct ip_fw_chain *ch, struct ip_fw *rule,
|
||||
IPFW_UH_WUNLOCK(ch);
|
||||
return (error);
|
||||
}
|
||||
|
||||
IPFW_UH_WUNLOCK(ch);
|
||||
|
||||
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)
|
||||
error = create_objects_compat(ch, rule->cmd, oib, pidx, ti);
|
||||
|
Loading…
Reference in New Issue
Block a user