svn commit: r260377 - head/sys/netpfil/pf

Gleb Smirnoff glebius at FreeBSD.org
Mon Jan 6 19:05:05 UTC 2014


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);
 }


More information about the svn-src-all mailing list