Revert part of rev 1.43. We want to fail gracefully if there is no packet

waiting in the interface queue.

Submitted by:	Yeasah Pell <yeasah@apocalypse.org>
This commit is contained in:
Dag-Erling Smørgrav 2003-06-08 18:35:25 +00:00
parent 690f13f3c3
commit 3f0a1da2f8

View File

@ -400,6 +400,9 @@ vxstart(ifp)
startagain:
/* Sneak a peek at the next packet */
m = ifp->if_snd.ifq_head;
if (m == NULL) {
return;
}
/* We need to use m->m_pkthdr.len, so require the header */
M_ASSERTPKTHDR(m);