summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_mbuf.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-04-05 10:52:46 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-04-05 10:52:46 +0000
commit6f0a71ab2f15d8dfd28ef08ab6970695916d87e2 (patch)
tree7f221b8e134d6e925df9ae582445707c3018e5bb /sys/kern/uipc_mbuf.c
parent02c12690501dd69ae54a130f3538850e9f71a8a5 (diff)
From angelos: (he can't commit this himself right now)
> I must have been on drugs...a deep copy is needed, or else there's double > free's when there's IPsec. [...] > This should solve the crash problems.
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r--sys/kern/uipc_mbuf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index d7ce9688e1e..7836872ae3f 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_mbuf.c,v 1.25 2001/03/30 19:24:35 angelos Exp $ */
+/* $OpenBSD: uipc_mbuf.c,v 1.26 2001/04/05 10:52:45 art Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */
/*
@@ -334,7 +334,7 @@ m_copym(m, off0, len, wait)
if (n == NULL)
goto nospace;
if (copyhdr) {
- M_COPY_PKTHDR(n, m);
+ M_DUP_PKTHDR(n, m);
if (len == M_COPYALL)
n->m_pkthdr.len -= off0;
else
@@ -410,7 +410,7 @@ m_copym2(m, off0, len, wait)
if (n == NULL)
goto nospace;
if (copyhdr) {
- M_COPY_PKTHDR(n, m);
+ M_DUP_PKTHDR(n, m);
if (len == M_COPYALL)
n->m_pkthdr.len -= off0;
else