summaryrefslogtreecommitdiff
path: root/sys/netinet6/frag6.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-06-11 18:15:56 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-06-11 18:15:56 +0000
commit11fcc68fad30620c6ac87dba9b240103f5cbc4e6 (patch)
treea2f7140c0e82286b40dda1a6da540fefba2e3cf9 /sys/netinet6/frag6.c
parent053f2c9694efd78cad0fb364e18939d590655719 (diff)
Replace all ovbcopy with memmove; swap the src and dst arguments too
ok otto
Diffstat (limited to 'sys/netinet6/frag6.c')
-rw-r--r--sys/netinet6/frag6.c6
1 files changed, 3 insertions, 3 deletions
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 {