mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Fix a memory-poisoning memset in tortls.c
This commit is contained in:
parent
a2517fa77c
commit
7a8960cf1b
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user