diff options
author | dlg <dlg@openbsd.org> | 2016-08-15 11:35:25 +0000 |
---|---|---|
committer | dlg <dlg@openbsd.org> | 2016-08-15 11:35:25 +0000 |
commit | 8927f87fca5a2fb9c1929f31e1f36bd1f5eaa225 (patch) | |
tree | ee1eba0fb44ac0b0ec0093f00443130567555043 /sys/netinet/ip_ipcomp.c | |
parent | Use pinctrl to configure the pins used by the EMAC. (diff) | |
download | wireguard-openbsd-8927f87fca5a2fb9c1929f31e1f36bd1f5eaa225.tar.xz wireguard-openbsd-8927f87fca5a2fb9c1929f31e1f36bd1f5eaa225.zip |
replace the last uses of m_copym2 with m_dup_pkt.
ok mpi@ visa@
Diffstat (limited to 'sys/netinet/ip_ipcomp.c')
-rw-r--r-- | sys/netinet/ip_ipcomp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_ipcomp.c b/sys/netinet/ip_ipcomp.c index fd7c49739ae..27bc2f381cc 100644 --- a/sys/netinet/ip_ipcomp.c +++ b/sys/netinet/ip_ipcomp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipcomp.c,v 1.44 2015/07/15 22:16:42 deraadt Exp $ */ +/* $OpenBSD: ip_ipcomp.c,v 1.45 2016/08/15 11:35:25 dlg Exp $ */ /* * Copyright (c) 2001 Jean-Jacques Bernard-Gundol (jj@wabbitt.org) @@ -473,7 +473,7 @@ ipcomp_output(m, tdb, mp, skip, protoff) if (mi != NULL) { /* Replace the rest of the mbuf chain. */ - struct mbuf *n = m_copym2(mi, 0, M_COPYALL, M_DONTWAIT); + struct mbuf *n = m_dup_pkt(mi, 0, M_DONTWAIT); if (n == NULL) { DPRINTF(("ipcomp_output(): bad mbuf chain, IPCA %s/%08x\n", |