diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 6a638f090..c10ae12ee 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -1280,7 +1280,7 @@ static void handle_auth_sae(struct hostapd_data *hapd, struct sta_info *sta, if (sta->sae->tmp && check_sae_rejected_groups( - hapd, sta->sae->tmp->peer_rejected_groups) < 0) { + hapd, sta->sae->tmp->peer_rejected_groups)) { resp = WLAN_STATUS_UNSPECIFIED_FAILURE; goto remove_sta; } diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index cfb5bb33d..48fc8f245 100644 --- a/wpa_supplicant/sme.c +++ b/wpa_supplicant/sme.c @@ -1263,7 +1263,7 @@ static int sme_sae_auth(struct wpa_supplicant *wpa_s, u16 auth_transaction, if (wpa_s->sme.sae.tmp && sme_check_sae_rejected_groups( wpa_s, - wpa_s->sme.sae.tmp->peer_rejected_groups) < 0) + wpa_s->sme.sae.tmp->peer_rejected_groups)) return -1; if (sae_process_commit(&wpa_s->sme.sae) < 0) {