]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* support/ab.c (ssl_proceed_handshake): Fix X509 * leak.
authorJoe Orton <jorton@apache.org>
Fri, 7 Jul 2023 11:02:38 +0000 (11:02 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 7 Jul 2023 11:02:38 +0000 (11:02 +0000)
PR: 64264

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910847 13f79535-47bb-0310-9956-ffa450edef68

support/ab.c

index 01aee88253935d1cb8566caa43e80cb16aff59ce..f21fb8ea97732feef934dd82ceacca7f44b23a6e 100644 (file)
@@ -858,6 +858,7 @@ static void ssl_proceed_handshake(struct connection *c)
                              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]) {