svn commit: r285944 - head/sys/netpfil/pf
Gleb Smirnoff
glebius at FreeBSD.org
Tue Jul 28 09:36:27 UTC 2015
Author: glebius
Date: Tue Jul 28 09:36:26 2015
New Revision: 285944
URL: https://svnweb.freebsd.org/changeset/base/285944
Log:
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
Modified:
head/sys/netpfil/pf/pf.c
Modified: head/sys/netpfil/pf/pf.c
==============================================================================
--- head/sys/netpfil/pf/pf.c Tue Jul 28 09:21:19 2015 (r285943)
+++ head/sys/netpfil/pf/pf.c Tue Jul 28 09:36:26 2015 (r285944)
@@ -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(
More information about the svn-src-head
mailing list