diff options
author | Kenjiro Cho <kjc@cvs.openbsd.org> | 2002-10-10 10:38:14 +0000 |
---|---|---|
committer | Kenjiro Cho <kjc@cvs.openbsd.org> | 2002-10-10 10:38:14 +0000 |
commit | 06ca1dc4bf0f0590d27da6a9e995cc2e9e1b2cf6 (patch) | |
tree | 502eedff9773fe2acc7f6be8407413d4d8ea65c4 | |
parent | 93a3f6298aa8d0f4b76ebec258167b0e190eccf5 (diff) |
preserve the m_tag order in m_tag_copy_chain() as originally intended.
the order doesn't matter at this moment but could be problematic
if 2 tags of the same type are ever added.
ok jason@, dhartmei@, angelos@
-rw-r--r-- | sys/kern/uipc_mbuf2.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/uipc_mbuf2.c b/sys/kern/uipc_mbuf2.c index 274cfc43c62..c8beccede0e 100644 --- a/sys/kern/uipc_mbuf2.c +++ b/sys/kern/uipc_mbuf2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf2.c,v 1.17 2002/03/14 01:27:05 millert Exp $ */ +/* $OpenBSD: uipc_mbuf2.c,v 1.18 2002/10/10 10:38:13 kjc 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 $ */ @@ -397,10 +397,9 @@ m_tag_copy_chain(to, from) } if (tprev == NULL) SLIST_INSERT_HEAD(&to->m_pkthdr.tags, t, m_tag_link); - else { + else SLIST_INSERT_AFTER(tprev, t, m_tag_link); - tprev = t; - } + tprev = t; } return (1); } |