]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r17717@catbus: nickm | 2008-01-21 17:09:23 -0500
authorNick Mathewson <nickm@torproject.org>
Mon, 21 Jan 2008 22:09:42 +0000 (22:09 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 21 Jan 2008 22:09:42 +0000 (22:09 +0000)
 Fix certificate leak.

svn:r13218

src/common/tortls.c

index 8c3163389580b80d5e42404a028480349b06c1c5..b049aa11eca21c61493b471bdc91389bcfdbd508 100644 (file)
@@ -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);
     }