From f9515fbe977a30ea4edc3919db37e8223996ad2b Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 13 Feb 2015 16:36:24 -0600 Subject: [PATCH] eapol: Add additional sanity checks for step 2 --- src/eapol.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/eapol.c b/src/eapol.c index 80a99647..924a8ba9 100644 --- a/src/eapol.c +++ b/src/eapol.c @@ -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; }