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:
Christian S.J. Peron 2006-11-05 17:56:25 +00:00
parent 5e263e6078
commit 67be76c039

View File

@ -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);