diff mbox series

BSS: MLD: Limit TBTT parsing to correct length

Message ID 20240901163135.2141665-1-andrei.otcheretianski@intel.com
State New
Headers show
Series BSS: MLD: Limit TBTT parsing to correct length | expand

Commit Message

Andrei Otcheretianski Sept. 1, 2024, 4:31 p.m. UTC
From: Benjamin Berg <benjamin.berg@intel.com>

Logically, it makes more sense to pass the ap_info_len as that is the
length that the function is permitted to process. Effectively it does
not make a difference and the code was entirely safe, but change it
nontheless to be more correct.

Fixes: de5e01010cb2 ("wpa_supplicant: Support ML probe request")

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
---
 wpa_supplicant/bss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c
index 39de8bac35..ec23ffad3e 100644
--- a/wpa_supplicant/bss.c
+++ b/wpa_supplicant/bss.c
@@ -1822,7 +1822,7 @@  int wpa_bss_parse_basic_ml_element(struct wpa_supplicant *wpa_s,
 				goto out;
 
 			wpa_bss_parse_ml_rnr_ap_info(wpa_s, bss, mbssid_idx,
-						     ap_info, len, &seen,
+						     ap_info, ap_info_len, &seen,
 						     &missing, ssid);
 
 			pos += ap_info_len;