summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-09-25 20:25:25 +0000
committersam <sam@FreeBSD.org>2008-09-25 20:25:25 +0000
commitf1ce06c8fb1bf46519e719f39617b53afb0c3ab8 (patch)
treeb824b65ac466de8aa63e275c51c48e038f0141bd
parent7cd998e440a6194e10f6c3f992365995098074c5 (diff)
downloadFreeBSD-src-f1ce06c8fb1bf46519e719f39617b53afb0c3ab8.zip
FreeBSD-src-f1ce06c8fb1bf46519e719f39617b53afb0c3ab8.tar.gz
must do a deep copy of mcast packets as they can be modified after dispatch
Submitted by: "Jared Go" <jared@hobnob.com>
-rw-r--r--sys/net80211/ieee80211_hostap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_hostap.c b/sys/net80211/ieee80211_hostap.c
index 7f28f4f..c0a99a1 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
OpenPOWER on IntegriCloud