aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-10-03 20:53:27 +0000
committerNick Mathewson <nickm@torproject.org>2005-10-03 20:53:27 +0000
commitfd04db90b5e22bd5908fc2eb5866b81165c6b0ad (patch)
tree9c516dfe63bc285ecfd0de57af0d39e502dd56c6 /src/common
parentc5ee3e961ef1556ed62449211adf9db6ef5150ca (diff)
downloadtor-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.c3
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);
}