[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r13218: Fix certificate leak. (in tor/trunk: . src/common)
Author: nickm
Date: 2008-01-21 17:09:42 -0500 (Mon, 21 Jan 2008)
New Revision: 13218
Modified:
tor/trunk/
tor/trunk/src/common/tortls.c
Log:
r17717@catbus: nickm | 2008-01-21 17:09:23 -0500
Fix certificate leak.
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r17717] on 8246c3cf-6607-4228-993b-4d95d33730f1
Modified: tor/trunk/src/common/tortls.c
===================================================================
--- tor/trunk/src/common/tortls.c 2008-01-21 22:07:10 UTC (rev 13217)
+++ tor/trunk/src/common/tortls.c 2008-01-21 22:09:42 UTC (rev 13218)
@@ -898,6 +898,8 @@
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);
}