From cf3681efbec464e5a22aeafdf227c5067ce78940 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Sun, 29 Mar 2015 20:57:58 -0500 Subject: [PATCH] eapol: Add comment for handling MIC failures --- src/eapol.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/eapol.c b/src/eapol.c index 10714627..6a11961f 100644 --- a/src/eapol.c +++ b/src/eapol.c @@ -754,6 +754,12 @@ static void eapol_handle_ptk_3_of_4(uint32_t ifindex, ek->key_descriptor_version, sm->replay_counter); + /* + * 802.11-2012, Section 11.6.6.4, step b): + * Verifies the Message 3 MIC. If the calculated MIC does not match + * the MIC that the Authenticator included in the EAPOL-Key frame, + * the Supplicant silently discards Message 3. + */ if (!eapol_calculate_mic(ptk->kck, step4, mic)) goto fail;