svn commit: r330609 - stable/10/sys/netipsec

Gordon Tetlow gordon at FreeBSD.org
Wed Mar 7 16:55:16 UTC 2018


Author: gordon
Date: Wed Mar  7 16:55:15 2018
New Revision: 330609
URL: https://svnweb.freebsd.org/changeset/base/330609

Log:
  Fixup the AH patch to properly compile.

Modified:
  stable/10/sys/netipsec/xform_ah.c

Modified: stable/10/sys/netipsec/xform_ah.c
==============================================================================
--- stable/10/sys/netipsec/xform_ah.c	Wed Mar  7 15:23:07 2018	(r330608)
+++ stable/10/sys/netipsec/xform_ah.c	Wed Mar  7 16:55:15 2018	(r330609)
@@ -603,11 +603,11 @@ ah_input(struct mbuf *m, struct secasvar *sav, int ski
 		DPRINTF(("%s: bad mbuf length %u (expecting %lu)"
 		    " for packet in SA %s/%08lx\n", __func__,
 		    m->m_pkthdr.len, (u_long) (skip + authsize + rplen),
-		    ipsec_address(&sav->sah->saidx.dst, buf, sizeof(buf)),
+		    ipsec_address(&sav->sah->saidx.dst),
 		    (u_long) ntohl(sav->spi)));
 		AHSTAT_INC(ahs_badauthl);
-		error = EACCES;
-		goto bad;
+		m_freem(m);
+		return EACCES;
 	}
 	AHSTAT_ADD(ahs_ibytes, m->m_pkthdr.len - skip - hl);
 


More information about the svn-src-all mailing list