Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 2015 11:12:57 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r286004 - stable/10/sys/netpfil/pf
Message-ID:  <201507291112.t6TBCv7A093651@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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(



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507291112.t6TBCv7A093651>