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:
iedowse 2003-03-13 09:02:19 +00:00
parent 328dd76438
commit 710d5c379e

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));
}
/*