FILS: Stop processing if fils_rmsk_to_pmk() fails

While the key derivation steps are not expected to fail, this was
already done on the AP side, so do the same in the STA side.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2017-02-05 14:38:07 +02:00
parent caab23f192
commit 275cc94280

View file

@ -3439,6 +3439,8 @@ int fils_process_auth(struct wpa_sm *sm, const u8 *data, size_t len)
sm->fils_nonce, sm->fils_anonce, NULL, 0, sm->fils_nonce, sm->fils_anonce, NULL, 0,
sm->pmk, &sm->pmk_len); sm->pmk, &sm->pmk_len);
os_memset(rmsk, 0, sizeof(rmsk)); os_memset(rmsk, 0, sizeof(rmsk));
if (res)
return -1;
if (!sm->fils_erp_pmkid_set) { if (!sm->fils_erp_pmkid_set) {
wpa_printf(MSG_DEBUG, "FILS: PMKID not available"); wpa_printf(MSG_DEBUG, "FILS: PMKID not available");