[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [obfsproxy/master] Zero the whole key in crypt_free()



commit ceedb351fb16d5f3791713bf55ecc8725697130b
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
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);
 }
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits