diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-10-03 20:53:27 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-10-03 20:53:27 +0000 |
commit | fd04db90b5e22bd5908fc2eb5866b81165c6b0ad (patch) | |
tree | 9c516dfe63bc285ecfd0de57af0d39e502dd56c6 /src/common | |
parent | c5ee3e961ef1556ed62449211adf9db6ef5150ca (diff) | |
download | tor-fd04db90b5e22bd5908fc2eb5866b81165c6b0ad.tar tor-fd04db90b5e22bd5908fc2eb5866b81165c6b0ad.tar.gz |
Stop leaking storage for EVP keys. (This would be a critical bug if it had ever appeared in a released version.)
svn:r5179
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/aes.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/aes.c b/src/common/aes.c index 71250cd0c..6179b1674 100644 --- a/src/common/aes.c +++ b/src/common/aes.c @@ -156,6 +156,9 @@ void aes_free_cipher(aes_cnt_cipher_t *cipher) { assert(cipher); +#ifdef USE_OPENSSL_EVP + EVP_CIPHER_CTX_cleanup(&cipher->key); +#endif memset(cipher, 0, sizeof(cipher)); tor_free(cipher); } |