summaryrefslogtreecommitdiffstats
path: root/sys/netpfil
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2015-07-28 09:36:26 +0000
committerglebius <glebius@FreeBSD.org>2015-07-28 09:36:26 +0000
commit90f99cb0991cfa4a276b211eda75788855eea1dd (patch)
treed4524b6dc0975e5b024933a81156e005b1cd3b42 /sys/netpfil
parenta7c1a8d16f54599df39944eb789ae113e84516c6 (diff)
downloadFreeBSD-src-90f99cb0991cfa4a276b211eda75788855eea1dd.zip
FreeBSD-src-90f99cb0991cfa4a276b211eda75788855eea1dd.tar.gz
Fix a typo in r280169. Of course we are interested in deleting nsn only
if we have just created it and we were the last reference. Submitted by: dhartmei
Diffstat (limited to 'sys/netpfil')
-rw-r--r--sys/netpfil/pf/pf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c
index 81d010f..122f026 100644
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -3681,7 +3681,7 @@ csfailed:
sh = &V_pf_srchash[pf_hashsrc(&nsn->addr, nsn->af)];
PF_HASHROW_LOCK(sh);
- if (--nsn->states == 1 && nsn->expire == 0) {
+ if (--nsn->states == 0 && nsn->expire == 0) {
pf_unlink_src_node(nsn);
uma_zfree(V_pf_sources_z, nsn);
counter_u64_add(
OpenPOWER on IntegriCloud