mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:19:34 +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:
parent
31284bf86b
commit
bb2be272ae
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user