From 23f68da56551823565be3b0cbf1b7180e412f67c Mon Sep 17 00:00:00 2001 From: jonathan Date: Wed, 13 Aug 2003 20:13:59 +0000 Subject: [PATCH] Make sure one (potentially) overlapping copy is safe. --- sys/netipsec/ipsec_mbuf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/netipsec/ipsec_mbuf.c b/sys/netipsec/ipsec_mbuf.c index ec9caf306a1e..793922b17117 100644 --- a/sys/netipsec/ipsec_mbuf.c +++ b/sys/netipsec/ipsec_mbuf.c @@ -1,8 +1,8 @@ -/* $NetBSD: ipsec_mbuf.c,v 1.1 2003/08/13 20:06:50 jonathan Exp $ */ +/* $NetBSD: ipsec_mbuf.c,v 1.2 2003/08/13 20:13:59 jonathan Exp $ */ /* $FreeBSD: src/sys/netipsec/ipsec_mbuf.c,v 1.5.2.1 2003/01/24 05:11:35 sam Exp $ */ #include -__KERNEL_RCSID(0, "$NetBSD: ipsec_mbuf.c,v 1.1 2003/08/13 20:06:50 jonathan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ipsec_mbuf.c,v 1.2 2003/08/13 20:13:59 jonathan Exp $"); /* * IPsec-specific mbuf routines. @@ -414,7 +414,7 @@ m_striphdr(struct mbuf *m, int skip, int hlen) * the remainder of the mbuf down over the header. */ newipsecstat.ips_input_middle++; - bcopy(mtod(m1, u_char *) + roff + hlen, + ovbcopy(mtod(m1, u_char *) + roff + hlen, mtod(m1, u_char *) + roff, m1->m_len - (roff + hlen)); m1->m_len -= hlen;