diff options
-rw-r--r-- | sys/kern/uipc_mbuf2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/uipc_mbuf2.c b/sys/kern/uipc_mbuf2.c index 9dbb7a3..50b37f5 100644 --- a/sys/kern/uipc_mbuf2.c +++ b/sys/kern/uipc_mbuf2.c @@ -428,10 +428,9 @@ m_tag_copy_chain(struct mbuf *to, struct mbuf *from, int how) } 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; } |