From: Andrei Otcheretianski Date: Mon, 20 Nov 2023 23:51:21 +0000 (+0200) Subject: wpa_supplicant: Fix ml_ie_len type in wpa_bss_parse_basic_ml_element() X-Git-Tag: hostap_2_11~774 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9160540ec38b5927c58f0ec4df2ab5d08299a42d;p=thirdparty%2Fhostap.git wpa_supplicant: Fix ml_ie_len type in wpa_bss_parse_basic_ml_element() Since the Multi-Link element can be fragmented, use size_t instead of u8. Signed-off-by: Andrei Otcheretianski --- diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c index fec0e5275..0ca36f1bc 100644 --- a/wpa_supplicant/bss.c +++ b/wpa_supplicant/bss.c @@ -1584,7 +1584,7 @@ int wpa_bss_parse_basic_ml_element(struct wpa_supplicant *wpa_s, struct wpabuf *mlbuf; const struct element *elem; u8 mbssid_idx = 0; - u8 ml_ie_len; + size_t ml_ie_len; const struct ieee80211_eht_ml *eht_ml; const struct eht_ml_basic_common_info *ml_basic_common_info; u8 i, link_id;