opnsense-ports/net/hostapd/files/patch-src_ap_wmm.c
Franco Fichtner 75ca77bba1 */*: sync with upstream
Taken from: FreeBSD
2015-06-03 09:37:17 +02:00

12 lines
373 B
C

--- src/ap/wmm.c.orig 2015-03-15 17:30:39 UTC
+++ src/ap/wmm.c
@@ -274,6 +274,9 @@ void hostapd_wmm_action(struct hostapd_d
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,