summaryrefslogtreecommitdiffstats
path: root/contrib/wpa/src/ap/wmm.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/wpa/src/ap/wmm.c')
-rw-r--r--contrib/wpa/src/ap/wmm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/wpa/src/ap/wmm.c b/contrib/wpa/src/ap/wmm.c
index 6d4177c..314e244 100644
--- a/contrib/wpa/src/ap/wmm.c
+++ b/contrib/wpa/src/ap/wmm.c
@@ -274,6 +274,9 @@ void hostapd_wmm_action(struct hostapd_data *hapd,
return;
}
+ if (left < 0)
+ return; /* not a valid WMM Action frame */
+
/* extract the tspec info element */
if (ieee802_11_parse_elems(pos, left, &elems, 1) == ParseFailed) {
hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211,
OpenPOWER on IntegriCloud