From: Nick Mathewson Date: Fri, 28 Oct 2011 20:37:42 +0000 (-0400) Subject: Fix a memory-poisoning memset in tortls.c X-Git-Tag: tor-0.2.3.7-alpha~6^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a8960cf1b34d27db0ffe0929c1810800f319c86;p=thirdparty%2Ftor.git Fix a memory-poisoning memset in tortls.c --- 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); }