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:
parent
4b1555c935
commit
a84d232eb1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user