mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Fix mbuf leak.
Submitted by: Johnny Eriksson <bygg@cafax.se> MFC after: 5 days
This commit is contained in:
parent
6ce8940626
commit
77fc70c1ef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139358
@ -575,8 +575,10 @@ bpfwrite(dev, uio, ioflag)
|
||||
if (error)
|
||||
return (error);
|
||||
|
||||
if (datlen > ifp->if_mtu)
|
||||
if (datlen > ifp->if_mtu) {
|
||||
m_freem(m);
|
||||
return (EMSGSIZE);
|
||||
}
|
||||
|
||||
if (d->bd_hdrcmplt)
|
||||
dst.sa_family = pseudo_AF_HDRCMPLT;
|
||||
|
Loading…
Reference in New Issue
Block a user