From: Nick Mathewson Date: Mon, 21 Jan 2008 22:09:42 +0000 (+0000) Subject: r17717@catbus: nickm | 2008-01-21 17:09:23 -0500 X-Git-Tag: tor-0.2.0.18-alpha~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddb753f87a5a0ca8dc64682525659f2ae4327907;p=thirdparty%2Ftor.git r17717@catbus: nickm | 2008-01-21 17:09:23 -0500 Fix certificate leak. svn:r13218 --- 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); }