Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jul 2012 17:46:05 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r238700 - head/sys/netipsec
Message-ID:  <201207221746.q6MHk57s010147@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Sun Jul 22 17:46:05 2012
New Revision: 238700
URL: http://svn.freebsd.org/changeset/base/238700

Log:
  Fix a bug introduced in r221129 that leads to a panic wen using bundled
  SAs.  For now allow same address family bundles.  While discovered with
  ESP and AH, which does not make a lot of sense, IPcomp could be a possible
  problematic candidate.
  
  PR:		kern/164400
  MFC after:	3 days

Modified:
  head/sys/netipsec/ipsec_output.c

Modified: head/sys/netipsec/ipsec_output.c
==============================================================================
--- head/sys/netipsec/ipsec_output.c	Sun Jul 22 17:31:36 2012	(r238699)
+++ head/sys/netipsec/ipsec_output.c	Sun Jul 22 17:46:05 2012	(r238700)
@@ -165,8 +165,7 @@ ipsec_process_done(struct mbuf *m, struc
 	 */
 	if (isr->next) {
 		V_ipsec4stat.ips_out_bundlesa++;
-		sav = isr->next->sav;
-		saidx = &sav->sah->saidx;
+		/* XXX-BZ currently only support same AF bundles. */
 		switch (saidx->dst.sa.sa_family) {
 #ifdef INET
 		case AF_INET:



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