diff options
author | itojun <itojun@FreeBSD.org> | 2000-07-04 18:43:32 +0000 |
---|---|---|
committer | itojun <itojun@FreeBSD.org> | 2000-07-04 18:43:32 +0000 |
commit | b59a314956a87ed86e7fd48275543ff1ee0f5a65 (patch) | |
tree | 1adb0908c8a3ae71b39d80d1e81078d3c26c90c1 /sys/dev/lnc | |
parent | 8d5454b61a39935066e62212acc62c2786652099 (diff) | |
download | FreeBSD-src-b59a314956a87ed86e7fd48275543ff1ee0f5a65.zip FreeBSD-src-b59a314956a87ed86e7fd48275543ff1ee0f5a65.tar.gz |
be sure to wipe out m_pkthdr when you set M_PKTHDR, you may see junk pointer
in m_pkthdr portion.
actually, we should not change pkthdr mbuf <-> non-pkthdr mbuf.
Diffstat (limited to 'sys/dev/lnc')
-rw-r--r-- | sys/dev/lnc/if_lnc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/lnc/if_lnc.c b/sys/dev/lnc/if_lnc.c index 960393c..d1c6e68 100644 --- a/sys/dev/lnc/if_lnc.c +++ b/sys/dev/lnc/if_lnc.c @@ -306,6 +306,7 @@ chain_mbufs(lnc_softc_t *sc, int start_of_packet, int pkt_len) head = desc->buff.mbuf; head->m_flags |= M_PKTHDR; + bzero(&head->m_pkthdr, sizeof(head->m_pkthdr)); m = head; do { |