aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-10-28 16:37:42 -0400
committerNick Mathewson <nickm@torproject.org>2011-10-28 16:37:42 -0400
commit7a8960cf1b34d27db0ffe0929c1810800f319c86 (patch)
tree70ca649d1ec140ee739449d0352137aa56fb4781 /src/common
parenta2517fa77c066e34d58fd50f930529b84e30946e (diff)
downloadtor-7a8960cf1b34d27db0ffe0929c1810800f319c86.tar
tor-7a8960cf1b34d27db0ffe0929c1810800f319c86.tar.gz
Fix a memory-poisoning memset in tortls.c
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tortls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 7aaa4e089..8cf396cda 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -694,7 +694,7 @@ tor_cert_free(tor_cert_t *cert)
if (cert->cert)
X509_free(cert->cert);
tor_free(cert->encoded);
- memset(cert, 0x03, sizeof(cert));
+ memset(cert, 0x03, sizeof(*cert));
tor_free(cert);
}