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:
parent
66d1e3e4d5
commit
84937ac44f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user