You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2023/07/07 11:02:38 UTC
svn commit: r1910847 - /httpd/httpd/trunk/support/ab.c
Author: jorton
Date: Fri Jul 7 11:02:38 2023
New Revision: 1910847
URL: http://svn.apache.org/viewvc?rev=1910847&view=rev
Log:
* support/ab.c (ssl_proceed_handshake): Fix X509 * leak.
PR: 64264
Modified:
httpd/httpd/trunk/support/ab.c
Modified: httpd/httpd/trunk/support/ab.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/ab.c?rev=1910847&r1=1910846&r2=1910847&view=diff
==============================================================================
--- httpd/httpd/trunk/support/ab.c (original)
+++ httpd/httpd/trunk/support/ab.c Fri Jul 7 11:02:38 2023
@@ -858,6 +858,7 @@ static void ssl_proceed_handshake(struct
SSL_get_version(c->ssl),
SSL_CIPHER_get_name(ci),
pk_bits, sk_bits);
+ if (cert) X509_free(cert);
}
#if OPENSSL_VERSION_NUMBER >= 0x10002000L
if (!worker->metrics.ssl_tmp_key[0] && !worker->metrics.ssl_tmp_key[1]) {