From 275cc942800eb22bd7a5a413ff016594ff404ef0 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 5 Feb 2017 14:38:07 +0200 Subject: [PATCH] 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 --- src/rsn_supp/wpa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rsn_supp/wpa.c b/src/rsn_supp/wpa.c index 88a66a51a..9c8ed6cb1 100644 --- a/src/rsn_supp/wpa.c +++ b/src/rsn_supp/wpa.c @@ -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->pmk, &sm->pmk_len); os_memset(rmsk, 0, sizeof(rmsk)); + if (res) + return -1; if (!sm->fils_erp_pmkid_set) { wpa_printf(MSG_DEBUG, "FILS: PMKID not available");