3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 10:39:23 +01:00

eapol: Add additional sanity checks for step 2

This commit is contained in:
Denis Kenzior 2015-02-13 16:36:24 -06:00
parent 9b746cd3c1
commit f9515fbe97

View File

@ -197,6 +197,10 @@ const struct eapol_key *eapol_verify_ptk_2_of_4(const uint8_t *frame,
if (key_len != 0)
return NULL;
VERIFY_IS_ZERO(ek->eapol_key_iv);
VERIFY_IS_ZERO(ek->key_rsc);
VERIFY_IS_ZERO(ek->reserved);
return ek;
}