commit ceedb351fb16d5f3791713bf55ecc8725697130b
Author: Sebastian Hahn <sebastian(a)torproject.org>
Date: Wed Feb 15 00:12:03 2012 +0100
Zero the whole key in crypt_free()
---
src/crypt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/crypt.c b/src/crypt.c
index e70ec29..50a1c30 100644
--- a/src/crypt.c
+++ b/src/crypt.c
@@ -178,7 +178,7 @@ stream_crypt(crypt_t *key, uchar *buf, size_t len)
void
crypt_free(crypt_t *key)
{
- memset(key, 0, sizeof(key));
+ memset(key, 0, sizeof(crypt_t));
free(key);
}