3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-30 06:02:39 +01:00

eapol: Drop unneded check in verify_ptk_4_of_4

Step 4 is always sent without encrypted Key Data according to Section
11.6.6.5.  In the case of WPA, Encrypted Key Data field is reserved, and
should always be 0.  Thus it is safe to drop the !is_wpa condition.
This commit is contained in:
Denis Kenzior 2015-05-05 22:01:53 -05:00
parent bb17f5df94
commit 2ba7867e9f

View File

@ -367,7 +367,7 @@ bool eapol_verify_ptk_4_of_4(const struct eapol_key *ek, bool is_wpa)
if (ek->secure != !is_wpa)
return false;
if (ek->encrypted_key_data && !is_wpa)
if (ek->encrypted_key_data)
return false;
key_len = L_BE16_TO_CPU(ek->key_length);