Fix a memory-poisoning memset in tortls.c

This commit is contained in:
Nick Mathewson 2011-10-28 16:37:42 -04:00
parent a2517fa77c
commit 7a8960cf1b

View File

@ -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);
}