diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-05-24 10:59:24 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-05-24 10:59:24 +0000 |
commit | dabb90d9842a60d2079308f9b86f73da851cf364 (patch) | |
tree | 1b51f1dda1528fd1ebc610f06f03d375461bfc94 /sys | |
parent | b0c4fceee63c1d87854c7694b89defccc4f68cc8 (diff) |
If the copied tag container is empty, initialize it properly.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/uipc_mbuf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index 253234d30d9..7dac42cd002 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf.c,v 1.31 2001/05/20 08:31:46 angelos Exp $ */ +/* $OpenBSD: uipc_mbuf.c,v 1.32 2001/05/24 10:59:23 angelos Exp $ */ /* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */ /* @@ -666,6 +666,8 @@ m_pullup2(n, len) if (n->m_flags & M_PKTHDR) { /* M_COPY_PKTHDR(m, n);*//* Too many adverse side effects. */ m->m_pkthdr = n->m_pkthdr; + if (TAILQ_EMPTY(&n->m_pkthdr.tags)) + TAILQ_INIT(&m->m_pkthdr.tags); m->m_flags = (n->m_flags & M_COPYFLAGS) | M_EXT; n->m_flags &= ~M_PKTHDR; TAILQ_INIT(&n->m_pkthdr.tags); |