In m_dup_pkthdr(), convert the supplied `how' argument into malloc

flags when passing it into m_tag_copy_chain(), as m_tag* functions
use malloc, not mbuf flags.
This commit is contained in:
Ian Dowse 2003-03-13 09:02:19 +00:00
parent 64eca1e1f2
commit a80cc4e104

View File

@ -129,7 +129,8 @@ m_dup_pkthdr(struct mbuf *to, struct mbuf *from, int how)
mac_create_mbuf_from_mbuf(from, to);
#endif
SLIST_INIT(&to->m_pkthdr.tags);
return (m_tag_copy_chain(to, from, how));
return (m_tag_copy_chain(to, from, (how & M_TRYWAIT) ? M_WAITOK :
M_NOWAIT));
}
/*