Module Name: src Committed By: martin Date: Tue Oct 8 18:09:41 UTC 2019
Modified Files: src/sys/net [netbsd-8]: if_ethersubr.c Log Message: Pull up following revision(s) (requested by ozaki-r in ticket #1401): sys/net/if_ethersubr.c: revision 1.255 Fix two bugs in altq_etherclassify. When scanning the mbuf chain we need to make sure that m_next is not NULL, otherwise NULL deref. After that, we must not touch m->m_pkthdr, given that 'm' may not be the first mbuf of the chain anymore. Declare mtop, and add a KASSERT to make sure it has M_PKTHDR set. To generate a diff of this commit: cvs rdiff -u -r126.96.36.199 -r188.8.131.52 src/sys/net/if_ethersubr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.