Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6-1]: src/sys/netipsec Fix previous (Ticket #1530)
details: https://anonhg.NetBSD.org/src/rev/40aa1d29b1b5
branches: netbsd-6-1
changeset: 776299:40aa1d29b1b5
user: martin <martin%NetBSD.org@localhost>
date: Thu Feb 15 16:49:35 2018 +0000
description:
Fix previous (Ticket #1530)
diffstat:
sys/netipsec/xform_ah.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r aa9997d80d20 -r 40aa1d29b1b5 sys/netipsec/xform_ah.c
--- a/sys/netipsec/xform_ah.c Thu Feb 15 14:50:57 2018 +0000
+++ b/sys/netipsec/xform_ah.c Thu Feb 15 16:49:35 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xform_ah.c,v 1.37.8.2 2018/02/15 08:09:30 martin Exp $ */
+/* $NetBSD: xform_ah.c,v 1.37.8.3 2018/02/15 16:49:35 martin Exp $ */
/* $FreeBSD: src/sys/netipsec/xform_ah.c,v 1.1.4.1 2003/01/24 05:11:36 sam Exp $ */
/* $OpenBSD: ip_ah.c,v 1.63 2001/06/26 06:18:58 angelos Exp $ */
/*
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xform_ah.c,v 1.37.8.2 2018/02/15 08:09:30 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xform_ah.c,v 1.37.8.3 2018/02/15 16:49:35 martin Exp $");
#include "opt_inet.h"
#ifdef __FreeBSD__
@@ -687,11 +687,10 @@
return EACCES;
}
if (skip + authsize + rplen > m->m_pkthdr.len) {
- char buf[IPSEC_ADDRSTRLEN];
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)));
AH_STATINC(AH_STAT_BADAUTHL);
m_freem(m);
Home |
Main Index |
Thread Index |
Old Index