diff options
author | melifaro <melifaro@FreeBSD.org> | 2015-04-30 21:51:12 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2015-04-30 21:51:12 +0000 |
commit | 3bda2891f8cdbb96150e67f363f0e26cbb6a5b9b (patch) | |
tree | 9ac90994da2a906a89517b2937688e049f1d9f6f /sys | |
parent | 8a9da57e83ceadba139a3e4fc9deeeafb6afb6b7 (diff) | |
download | FreeBSD-src-3bda2891f8cdbb96150e67f363f0e26cbb6a5b9b.zip FreeBSD-src-3bda2891f8cdbb96150e67f363f0e26cbb6a5b9b.tar.gz |
Fix KASSERT introduced in r282155.
Found by: dhw
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netpfil/ipfw/ip_fw_table.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netpfil/ipfw/ip_fw_table.c b/sys/netpfil/ipfw/ip_fw_table.c index 8b15a93..ca4e0e4 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) |