From caf993912ec0b730e87cd2460a5a0dede0927101 Mon Sep 17 00:00:00 2001 From: "Alexander V. Chernikov" Date: Thu, 30 Apr 2015 21:51:12 +0000 Subject: [PATCH] Fix KASSERT introduced in r282155. Found by: dhw --- sys/netpfil/ipfw/ip_fw_table.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/netpfil/ipfw/ip_fw_table.c b/sys/netpfil/ipfw/ip_fw_table.c index 8b15a93fcba7..ca4e0e4c3ea9 100644 --- a/sys/netpfil/ipfw/ip_fw_table.c +++ b/sys/netpfil/ipfw/ip_fw_table.c @@ -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)