diff options
author | glebius <glebius@FreeBSD.org> | 2015-07-29 11:12:56 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2015-07-29 11:12:56 +0000 |
commit | cbda56cb99dc5ccfe572174c78c7bba0278fe878 (patch) | |
tree | 6ef9f2eb698f7b7e441290359ecbdfa20c1b2078 /sys/netpfil | |
parent | 855288edce485f444d7c5525383eacec08b6bd4a (diff) | |
download | FreeBSD-src-cbda56cb99dc5ccfe572174c78c7bba0278fe878.zip FreeBSD-src-cbda56cb99dc5ccfe572174c78c7bba0278fe878.tar.gz |
Merge r285944: fix typo: delete nsn if we were the last reference.
Diffstat (limited to 'sys/netpfil')
-rw-r--r-- | sys/netpfil/pf/pf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c index c782506..920aa91 100644 --- a/sys/netpfil/pf/pf.c +++ b/sys/netpfil/pf/pf.c @@ -3679,7 +3679,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( |