diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-10-28 16:37:42 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-10-28 16:37:42 -0400 |
commit | 7a8960cf1b34d27db0ffe0929c1810800f319c86 (patch) | |
tree | 70ca649d1ec140ee739449d0352137aa56fb4781 /src | |
parent | a2517fa77c066e34d58fd50f930529b84e30946e (diff) | |
download | tor-7a8960cf1b34d27db0ffe0929c1810800f319c86.tar.gz tor-7a8960cf1b34d27db0ffe0929c1810800f319c86.zip |
Fix a memory-poisoning memset in tortls.c
Diffstat (limited to 'src')
-rw-r--r-- | src/common/tortls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index 7aaa4e0894..8cf396cdac 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); } |