From 74fdefa7c98cd59eb34e0a5785fbd71663b270ab Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Thu, 25 Sep 2008 20:25:25 +0000 Subject: [PATCH] must do a deep copy of mcast packets as they can be modified after dispatch Submitted by: "Jared Go" --- sys/net80211/ieee80211_hostap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net80211/ieee80211_hostap.c b/sys/net80211/ieee80211_hostap.c index 7f28f4fe945..c0a99a12dbf 100644 --- a/sys/net80211/ieee80211_hostap.c +++ b/sys/net80211/ieee80211_hostap.c @@ -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