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(
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to