svn commit: r286004 - stable/10/sys/netpfil/pf

Gleb Smirnoff glebius at FreeBSD.org
Wed Jul 29 11:12:57 UTC 2015


Author: glebius
Date: Wed Jul 29 11:12:56 2015
New Revision: 286004
URL: https://svnweb.freebsd.org/changeset/base/286004

Log:
  Merge r285944: fix typo: delete nsn if we were the last reference.

Modified:
  stable/10/sys/netpfil/pf/pf.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netpfil/pf/pf.c
==============================================================================
--- stable/10/sys/netpfil/pf/pf.c	Wed Jul 29 10:53:42 2015	(r286003)
+++ stable/10/sys/netpfil/pf/pf.c	Wed Jul 29 11:12:56 2015	(r286004)
@@ -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(


More information about the svn-src-all mailing list