Fix possible leak when bridge is in monitor mode. Use m_freem() which will
free the entire chain, instead of using m_free() which will free just the mbuf that was passed. Discussed with: thompsa MFC after: 3 days
This commit is contained in:
parent
5e263e6078
commit
67be76c039
@ -2034,7 +2034,7 @@ bridge_input(struct ifnet *ifp, struct mbuf *m)
|
||||
BPF_MTAP(bifp, m);
|
||||
bifp->if_ipackets++;
|
||||
bifp->if_ibytes += m->m_pkthdr.len;
|
||||
m_free(m);
|
||||
m_freem(m);
|
||||
return (NULL);
|
||||
}
|
||||
BRIDGE_LOCK(sc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user