must do a deep copy of mcast packets as they can be modified after dispatch

Submitted by:	"Jared Go" <jared@hobnob.com>
This commit is contained in:
Sam Leffler 2008-09-25 20:25:25 +00:00
parent d47faadce3
commit 74fdefa7c9

View File

@ -319,7 +319,7 @@ hostap_deliver_data(struct ieee80211vap *vap,
struct mbuf *mcopy = NULL;
if (m->m_flags & M_MCAST) {
mcopy = m_copypacket(m, M_DONTWAIT);
mcopy = m_dup(m, M_DONTWAIT);
if (mcopy == NULL)
ifp->if_oerrors++;
else