mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-23 06:02:37 +01:00
sae: check return getting k_point
This commit is contained in:
parent
ba7f7febd1
commit
96aa658375
@ -498,6 +498,9 @@ static int sae_process_commit(struct sae_sm *sm, const uint8_t *from,
|
|||||||
|
|
||||||
l_ecc_point_free(k_point);
|
l_ecc_point_free(k_point);
|
||||||
|
|
||||||
|
if (klen < 0)
|
||||||
|
goto reject;
|
||||||
|
|
||||||
/* keyseed = H(<0>32, k) */
|
/* keyseed = H(<0>32, k) */
|
||||||
hmac_sha256(zero_key, 32, k, klen, keyseed, 32);
|
hmac_sha256(zero_key, 32, k, klen, keyseed, 32);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user