From 11fcc68fad30620c6ac87dba9b240103f5cbc4e6 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 11 Jun 2013 18:15:56 +0000 Subject: Replace all ovbcopy with memmove; swap the src and dst arguments too ok otto --- sys/netinet6/frag6.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/netinet6/frag6.c') diff --git a/sys/netinet6/frag6.c b/sys/netinet6/frag6.c index 982fd4976fe..4f695f7ad90 100644 --- a/sys/netinet6/frag6.c +++ b/sys/netinet6/frag6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: frag6.c,v 1.46 2013/05/31 15:04:23 bluhm Exp $ */ +/* $OpenBSD: frag6.c,v 1.47 2013/06/11 18:15:54 deraadt Exp $ */ /* $KAME: frag6.c,v 1.40 2002/05/27 21:40:31 itojun Exp $ */ /* @@ -572,8 +572,8 @@ frag6_deletefraghdr(struct mbuf *m, int offset) struct mbuf *t; if (m->m_len >= offset + sizeof(struct ip6_frag)) { - ovbcopy(mtod(m, caddr_t), mtod(m, caddr_t) + - sizeof(struct ip6_frag), offset); + memmove(mtod(m, caddr_t) + sizeof(struct ip6_frag), + mtod(m, caddr_t), offset); m->m_data += sizeof(struct ip6_frag); m->m_len -= sizeof(struct ip6_frag); } else { -- cgit v1.2.3