From 4a27563b5a5c77dd4171a9014d235ffc1b973e60 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Wed, 29 Apr 2015 01:00:22 +0200 Subject: [PATCH] eapol: Fix key-IV check in EAPOL-Key verification The comment correctly states the IV is 0 for version 2, but the check was actually for version 1. --- src/eapol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eapol.c b/src/eapol.c index 3de414a9..55247833 100644 --- a/src/eapol.c +++ b/src/eapol.c @@ -332,7 +332,7 @@ bool eapol_verify_ptk_3_of_4(const struct eapol_key *ek) /* 0 (Version 2) or random (Version 1) */ if (ek->key_descriptor_version == - EAPOL_KEY_DESCRIPTOR_VERSION_HMAC_MD5_ARC4) + EAPOL_KEY_DESCRIPTOR_VERSION_HMAC_SHA1_AES) VERIFY_IS_ZERO(ek->eapol_key_iv); return true;