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);
 
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to