Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jan 2014 19:05:05 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r260377 - head/sys/netpfil/pf
Message-ID:  <201401061905.s06J559t096288@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Mon Jan  6 19:05:04 2014
New Revision: 260377
URL: http://svnweb.freebsd.org/changeset/base/260377

Log:
  When pf_get_translation() fails, it should leave *sn pointer pristine,
  otherwise we will panic in pf_test_rule().
  
  PR:		182557

Modified:
  head/sys/netpfil/pf/pf_lb.c

Modified: head/sys/netpfil/pf/pf_lb.c
==============================================================================
--- head/sys/netpfil/pf/pf_lb.c	Mon Jan  6 17:23:22 2014	(r260376)
+++ head/sys/netpfil/pf/pf_lb.c	Mon Jan  6 19:05:04 2014	(r260377)
@@ -686,6 +686,7 @@ notrans:
 	uma_zfree(V_pf_state_key_z, *nkp);
 	uma_zfree(V_pf_state_key_z, *skp);
 	*skp = *nkp = NULL;
+	*sn = NULL;
 
 	return (NULL);
 }



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