diff options
-rw-r--r-- | src/common/tortls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index 8c31633895..b049aa11ec 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -898,6 +898,8 @@ tor_tls_handshake(tor_tls_t *tls) log_notice(LD_NET, "I think I got a v2 handshake!"); tls->wasV2Handshake = 1; } + if (cert) + X509_free(cert); #endif SSL_set_cipher_list(tls->ssl, SERVER_CIPHER_LIST); } |