From a84d232eb14e1e030d88f9456d942d9976f74918 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Mon, 18 May 2015 13:31:39 +0200 Subject: [PATCH] eapol: Accept 32-byte keys in verify_ptk_3_of_4 TKIP key data is 32 bytes long. --- src/eapol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eapol.c b/src/eapol.c index e7b204e0..0d659c8a 100644 --- a/src/eapol.c +++ b/src/eapol.c @@ -344,7 +344,7 @@ bool eapol_verify_ptk_3_of_4(const struct eapol_key *ek, bool is_wpa) return false; key_len = L_BE16_TO_CPU(ek->key_length); - if (key_len != 16) + if (key_len != 16 && key_len != 32) return false; VERIFY_IS_ZERO(ek->reserved);