mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
Stop leaking storage for EVP keys. (This would be a critical bug if it had ever appeared in a released version.)
svn:r5179
This commit is contained in:
parent
c5ee3e961e
commit
fd04db90b5
1 changed files with 3 additions and 0 deletions
|
@ -156,6 +156,9 @@ void
|
||||||
aes_free_cipher(aes_cnt_cipher_t *cipher)
|
aes_free_cipher(aes_cnt_cipher_t *cipher)
|
||||||
{
|
{
|
||||||
assert(cipher);
|
assert(cipher);
|
||||||
|
#ifdef USE_OPENSSL_EVP
|
||||||
|
EVP_CIPHER_CTX_cleanup(&cipher->key);
|
||||||
|
#endif
|
||||||
memset(cipher, 0, sizeof(cipher));
|
memset(cipher, 0, sizeof(cipher));
|
||||||
tor_free(cipher);
|
tor_free(cipher);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue