]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_supplicant: Fix ml_ie_len type in wpa_bss_parse_basic_ml_element()
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Mon, 20 Nov 2023 23:51:21 +0000 (01:51 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 25 Nov 2023 11:40:15 +0000 (13:40 +0200)
Since the Multi-Link element can be fragmented, use size_t instead of
u8.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
wpa_supplicant/bss.c

index fec0e527583d342059c038c69c4ac40eec314c4c..0ca36f1bca4374aa707ed535ef9b752e88f67be5 100644 (file)
@@ -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;