mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +01:00
eap-pwd: fix potential memory leak
This commit is contained in:
parent
e31074b246
commit
8364807938
@ -115,8 +115,10 @@ static bool kdf(uint8_t *key, size_t key_len, const char *label,
|
||||
iov[iov_pos].iov_base = &L;
|
||||
iov[iov_pos++].iov_len = 2;
|
||||
|
||||
if (!l_checksum_updatev(hmac, iov, iov_pos))
|
||||
if (!l_checksum_updatev(hmac, iov, iov_pos)) {
|
||||
l_checksum_free(hmac);
|
||||
return false;
|
||||
}
|
||||
|
||||
l_checksum_get_digest(hmac, out + len, minsize(olen - len, 32));
|
||||
l_checksum_free(hmac);
|
||||
|
Loading…
Reference in New Issue
Block a user