mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
Fix coverity reported issues
This commit is contained in:
parent
944690a5e7
commit
916a4d6524
@ -1060,6 +1060,7 @@ void __wpa_send_eapol(struct wpa_authenticator *wpa_auth,
|
||||
os_free(hdr);
|
||||
return;
|
||||
}
|
||||
os_free(buf);
|
||||
}
|
||||
|
||||
if (key_info & WPA_KEY_INFO_MIC) {
|
||||
|
@ -815,8 +815,10 @@ static int sae_derive_keys(struct sae_data *sae, const u8 *k)
|
||||
*/
|
||||
|
||||
os_memset(null_key, 0, sizeof(null_key));
|
||||
hmac_sha256(null_key, sizeof(null_key), k, sae->tmp->prime_len,
|
||||
keyseed);
|
||||
if (hmac_sha256(null_key, sizeof(null_key), k, sae->tmp->prime_len,
|
||||
keyseed) < 0)
|
||||
goto fail;
|
||||
|
||||
wpa_hexdump_key(MSG_DEBUG, "SAE: keyseed", keyseed, sizeof(keyseed));
|
||||
|
||||
crypto_bignum_add(sae->tmp->own_commit_scalar, sae->peer_commit_scalar,
|
||||
|
Loading…
x
Reference in New Issue
Block a user