From 86e7883c743677b0cc51cdcaf90e822ff30d8a27 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 20 Mar 2015 14:52:49 -0500 Subject: [PATCH] eapol: Print a message if MIC calculation fails --- src/eapol.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/eapol.c b/src/eapol.c index 9c0a5c9c..d6a69abb 100644 --- a/src/eapol.c +++ b/src/eapol.c @@ -534,8 +534,11 @@ static void eapol_handle_ptk_1_of_4(uint32_t ifindex, struct eapol_sm *sm, sm->snonce, sm->own_rsn[1] + 2, sm->own_rsn); - if (!eapol_calculate_mic(ptk->kck, step2, mic)) + if (!eapol_calculate_mic(ptk->kck, step2, mic)) { + l_info("MIC calculation failed. " + "Ensure Kernel Crypto is available."); goto fail; + } memcpy(step2->key_mic_data, mic, sizeof(mic)); tx_packet(ifindex, sm->aa, sm->spa, step2, user_data);