From d5c216467069a6184ddf3fa136d7167bec3e0a55 Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Mon, 21 Feb 2011 20:00:13 +0000 Subject: When bridging multicast frames in hostap mode, make a deep copy of the mbuf instead of a shallow copy to avoid problems if the mbuf is modified later (e.g. if the frame is encrypted). From FreeBSD. http://marc.info/?l=freebsd-current&m=114168135819304&w=2 http://svn.freebsd.org/viewvc/base?view=revision&revision=156367 ok damien; committing with miod's permission (src is soft-locked) --- sys/net80211/ieee80211_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net80211') diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c index cb9b6302db4..8721ba587cd 100644 --- a/sys/net80211/ieee80211_input.c +++ b/sys/net80211/ieee80211_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_input.c,v 1.116 2010/06/07 16:51:22 damien Exp $ */ +/* $OpenBSD: ieee80211_input.c,v 1.117 2011/02/21 20:00:12 stsp Exp $ */ /*- * Copyright (c) 2001 Atsushi Onoe @@ -789,7 +789,7 @@ ieee80211_deliver_data(struct ieee80211com *ic, struct mbuf *m, int error, len; if (ETHER_IS_MULTICAST(eh->ether_dhost)) { - m1 = m_copym(m, 0, M_COPYALL, M_DONTWAIT); + m1 = m_copym2(m, 0, M_COPYALL, M_DONTWAIT); if (m1 == NULL) ifp->if_oerrors++; else -- cgit v1.2.3