Test the mbuf flags against the correct constant. The previous version

worked as intended but only by chance.  MT_HEADER == M_PKTHDR == 0x2.
This commit is contained in:
andre 2005-08-30 16:21:51 +00:00
parent 66d1e3e4d5
commit 84937ac44f

View File

@ -719,7 +719,7 @@ ndis_ptom(m0, p)
p, 0, EXT_NDIS);
p->np_refcnt++;
totlen += m->m_len;
if (m->m_flags & MT_HEADER)
if (m->m_flags & M_PKTHDR)
*m0 = m;
else
prev->m_next = m;