summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2001-06-25 02:57:46 +0000
committerangelos <angelos@openbsd.org>2001-06-25 02:57:46 +0000
commitfdfaea249dcb699a21e822a80bc5aa7cfaad72df (patch)
treef1185ad7414e565bd6ffd512569a3e8f390130df
parentDon't double-clear M_PKTHDR/tags. (diff)
downloadwireguard-openbsd-fdfaea249dcb699a21e822a80bc5aa7cfaad72df.tar.xz
wireguard-openbsd-fdfaea249dcb699a21e822a80bc5aa7cfaad72df.zip
Copy the m_flags, *then* clear M_PKTHDR on from...bad Federico.
-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; \
}