Even though this should not really return NULL for a case where a STA
link has already been checked to be valid, it is better to be
consistently checking for the theoretical NULL value from
hostapd_mld_get_link_bss() (if for no other reason, then at least to
silence warnings from static analyzers).
Signed-off-by: Jouni Malinen <j@w1.fi>
continue;
bss = hostapd_mld_get_link_bss(hapd, link_id);
- if (bss != hapd &&
+ if (bss && bss != hapd &&
hostapd_check_acl(bss, addr, NULL) !=
HOSTAPD_ACL_ACCEPT) {
wpa_printf(MSG_INFO, "STA " MACSTR
reason = WLAN_REASON_UNSPECIFIED;
goto fail;
}
- if (hostapd_check_acl(bss, info->peer_addr, NULL) !=
+ if (bss &&
+ hostapd_check_acl(bss, info->peer_addr, NULL) !=
HOSTAPD_ACL_ACCEPT) {
wpa_printf(MSG_INFO, "link addr " MACSTR
" not allowed to connect",