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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116062
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user