mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-20 15:24:25 +00:00
preserve the order of tags copied by m_tag_copy_chain
Obtained from: OpenBSD
This commit is contained in:
parent
61de3d8db1
commit
07ff231fcb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109619
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue