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
1 changed files with 4 additions and 0 deletions

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;
}