aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/netipsec/ipsec_mbuf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netipsec/ipsec_mbuf.c b/sys/netipsec/ipsec_mbuf.c
index b8a8c208619c..a3a3b3f01f60 100644
--- a/sys/netipsec/ipsec_mbuf.c
+++ b/sys/netipsec/ipsec_mbuf.c
@@ -291,9 +291,8 @@ m_makespace(struct mbuf *m0, int skip, int hlen, int *off)
* Copy the remainder to the back of the mbuf
* so there's space to write the new header.
*/
- /* XXX can this be memcpy? does it handle overlap? */
- ovbcopy(mtod(m, caddr_t) + skip,
- mtod(m, caddr_t) + skip + hlen, remain);
+ bcopy(mtod(m, caddr_t) + skip,
+ mtod(m, caddr_t) + skip + hlen, remain);
m->m_len += hlen;
*off = skip;
}