summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-25 02:57:47 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-25 02:57:47 +0000
commitccf6d37984ba520ee039693cbb8c70762e0d3aeb (patch)
tree237b7da2f0eda700f943d7c3d52a54637d376485 /sys
parent9006155512354a5a94ada1cf230304eb15e36077 (diff)
Copy the m_flags, *then* clear M_PKTHDR on from...bad Federico.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/mbuf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index 6240c442215..319a5605e42 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mbuf.h,v 1.44 2001/06/25 02:35:11 angelos Exp $ */
+/* $OpenBSD: mbuf.h,v 1.45 2001/06/25 02:57:46 angelos Exp $ */
/* $NetBSD: mbuf.h,v 1.19 1996/02/09 18:25:14 christos Exp $ */
/*
@@ -443,8 +443,8 @@ void _sk_mclget(struct mbuf *, int);
* from must have M_PKTHDR set, and to must be empty.
*/
#define M_COPY_PKTHDR(to, from) { \
- M_COPY_HDR((to), (from)); \
(to)->m_flags = (from)->m_flags & M_COPYFLAGS; \
+ M_COPY_HDR((to), (from)); \
(to)->m_data = (to)->m_pktdat; \
}