3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-05 19:08:52 +02:00

eap-aka: RAND and AUTN were not being checked

When processing the challenge, the AT_RAND and AT_AUTN attributes
were never being checked if they were present.
This commit is contained in:
James Prestwood 2017-08-30 16:22:47 -07:00 committed by Denis Kenzior
parent 5d98c7adcf
commit 1c34452a7b

View File

@ -324,6 +324,12 @@ static void handle_challenge(struct eap_state *eap, const uint8_t *pkt,
}
}
/* check that the right attributes were found */
if (!rand || !autn) {
l_error("AT_RAND or AT_AUTN were not found");
goto chal_error;
}
if (aka->type == EAP_TYPE_AKA_PRIME && (!kdf_in || !kdf_func)) {
l_error("AT_KDF or AT_KDF_INPUT were not found");
goto chal_error;