]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Do not access WPA authenticator object if not valid
authorIlan Peer <ilan.peer@intel.com>
Tue, 21 Nov 2023 15:23:57 +0000 (17:23 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 26 Nov 2023 14:56:18 +0000 (16:56 +0200)
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
src/ap/wpa_auth_glue.c

index 23c7bbe2b7bb55983e09286241ef640ee749d11f..742f6d419af653f511ad0f4d9c800b576d041b65 100644 (file)
@@ -1538,7 +1538,8 @@ static int hostapd_wpa_auth_get_ml_rsn_info(void *ctx,
 
                        if (!iface->bss[0]->conf->mld_ap ||
                            hapd->conf->mld_id != iface->bss[0]->conf->mld_id ||
-                           link_id != iface->bss[0]->mld_link_id)
+                           link_id != iface->bss[0]->mld_link_id ||
+                           !iface->bss[0]->wpa_auth)
                                continue;
 
                        wpa_auth_ml_get_rsn_info(iface->bss[0]->wpa_auth,
@@ -1580,7 +1581,8 @@ static int hostapd_wpa_auth_get_ml_key_info(void *ctx,
 
                        if (!iface->bss[0]->conf->mld_ap ||
                            hapd->conf->mld_id != iface->bss[0]->conf->mld_id ||
-                           link_id != iface->bss[0]->mld_link_id)
+                           link_id != iface->bss[0]->mld_link_id ||
+                           !iface->bss[0]->wpa_auth)
                                continue;
 
                        wpa_auth_ml_get_key_info(iface->bss[0]->wpa_auth,