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:
parent
690f13f3c3
commit
3f0a1da2f8
@ -400,6 +400,9 @@ vxstart(ifp)
|
|||||||
startagain:
|
startagain:
|
||||||
/* Sneak a peek at the next packet */
|
/* Sneak a peek at the next packet */
|
||||||
m = ifp->if_snd.ifq_head;
|
m = ifp->if_snd.ifq_head;
|
||||||
|
if (m == NULL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* We need to use m->m_pkthdr.len, so require the header */
|
/* We need to use m->m_pkthdr.len, so require the header */
|
||||||
M_ASSERTPKTHDR(m);
|
M_ASSERTPKTHDR(m);
|
||||||
|
Loading…
Reference in New Issue
Block a user