preserve the order of tags copied by m_tag_copy_chain

Obtained from:	OpenBSD
This commit is contained in:
Sam Leffler 2003-01-21 06:14:38 +00:00
parent 61de3d8db1
commit 07ff231fcb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109619

View file

@ -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;
}