diff options
author | andre <andre@FreeBSD.org> | 2005-08-30 16:21:51 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2005-08-30 16:21:51 +0000 |
commit | 84937ac44f523f9e06b5dd5dcc076c5fe78a64d3 (patch) | |
tree | fe34e131ea53470d74f6f0d62bbe4e94841f580b /sys/compat | |
parent | 66d1e3e4d538e86602b22c81d6969aaca5706785 (diff) | |
download | FreeBSD-src-84937ac44f523f9e06b5dd5dcc076c5fe78a64d3.zip FreeBSD-src-84937ac44f523f9e06b5dd5dcc076c5fe78a64d3.tar.gz |
Test the mbuf flags against the correct constant. The previous version
worked as intended but only by chance. MT_HEADER == M_PKTHDR == 0x2.
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/ndis/kern_ndis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/ndis/kern_ndis.c b/sys/compat/ndis/kern_ndis.c index 62d42cb..573d78f 100644 --- a/sys/compat/ndis/kern_ndis.c +++ b/sys/compat/ndis/kern_ndis.c @@ -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; |