AP MLD: Do not access WPA authenticator object if not valid

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
Ilan Peer 2023-11-21 17:23:57 +02:00 committed by Jouni Malinen
parent 21e8fcc807
commit ecd9ea0c8a

View 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,