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

unit: Assert eapol_key_validate is valid first

Before running eapol_verify_ptk_2_of_4, assert that eapol_key_validate
did not return NULL.
This commit is contained in:
Andrew Zaborowski 2015-05-06 01:48:39 +02:00 committed by Denis Kenzior
parent 31284bf86b
commit bb2be272ae

View File

@ -504,8 +504,8 @@ static void eapol_4way_test(const void *data)
step2 = eapol_key_validate(eapol_key_data_4,
sizeof(eapol_key_data_4));
assert(eapol_verify_ptk_2_of_4(step2));
assert(step2);
assert(eapol_verify_ptk_2_of_4(step2));
memcpy(snonce, step2->key_nonce, sizeof(step2->key_nonce));
assert(!crypto_psk_from_passphrase(passphrase, (uint8_t *) ssid,