summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-03-03 12:53:58 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-03-03 12:53:58 +0000
commit23636759ba4593d4323a07b973bf0bc13ffe8ce1 (patch)
treee12e070a653bef2de5310153cf15368e2f625140 /sys/kern
parent91ea7f0674b3bfbc7f5f515976b4925bc506e3ce (diff)
set n->m_len, somehow the line have lost. thanks daniel
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/uipc_mbuf2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/uipc_mbuf2.c b/sys/kern/uipc_mbuf2.c
index 98da1d0e1ce..bac9d862e20 100644
--- a/sys/kern/uipc_mbuf2.c
+++ b/sys/kern/uipc_mbuf2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_mbuf2.c,v 1.19 2003/03/03 12:08:30 itojun Exp $ */
+/* $OpenBSD: uipc_mbuf2.c,v 1.20 2003/03/03 12:53:57 itojun Exp $ */
/* $KAME: uipc_mbuf2.c,v 1.29 2001/02/14 13:42:10 itojun Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.40 1999/04/01 00:23:25 thorpej Exp $ */
@@ -259,6 +259,8 @@ m_dup1(m, off, len, wait)
if (copyhdr)
M_DUP_PKTHDR(n, m);
m_copydata(m, off, len, mtod(n, caddr_t));
+ n->m_len = len;
+
return (n);
}