3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 03:32:42 +01:00

eapol: Accept 32-byte keys in verify_ptk_3_of_4

TKIP key data is 32 bytes long.
This commit is contained in:
Andrew Zaborowski 2015-05-18 13:31:39 +02:00 committed by Denis Kenzior
parent 4b1555c935
commit a84d232eb1

View File

@ -344,7 +344,7 @@ bool eapol_verify_ptk_3_of_4(const struct eapol_key *ek, bool is_wpa)
return false; return false;
key_len = L_BE16_TO_CPU(ek->key_length); key_len = L_BE16_TO_CPU(ek->key_length);
if (key_len != 16) if (key_len != 16 && key_len != 32)
return false; return false;
VERIFY_IS_ZERO(ek->reserved); VERIFY_IS_ZERO(ek->reserved);