summaryrefslogtreecommitdiffstats
path: root/sys/net80211
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c
index 1fa87f2..ccf09b3 100644
--- a/sys/net80211/ieee80211_output.c
+++ b/sys/net80211/ieee80211_output.c
@@ -284,7 +284,8 @@ ieee80211_getmbuf(int flags, int type, u_int pktlen)
{
struct mbuf *m;
- if (pktlen > MHLEN)
+ KASSERT(pktlen <= MCLBYTES, ("802.11 packet too large: %u", pktlen));
+ if (pktlen <= MHLEN)
MGETHDR(m, flags, type);
else
m = m_getcl(flags, type, M_PKTHDR);
OpenPOWER on IntegriCloud