This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.2.x by this push:
     new 699759e08 Fixes leak of ssl_ocsp_response_path_only on reload (#8822)
699759e08 is described below

commit 699759e08b02e2c7b22f3f6a6ac71881db1919af
Author: Randall Meyer <[email protected]>
AuthorDate: Thu May 5 11:47:16 2022 -0700

    Fixes leak of ssl_ocsp_response_path_only on reload (#8822)
    
    (cherry picked from commit 18c54049cc567d5ea4c92a93ce299fc2d0ecf454)
---
 iocore/net/SSLConfig.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/iocore/net/SSLConfig.cc b/iocore/net/SSLConfig.cc
index d0799d6f8..0af21d410 100644
--- a/iocore/net/SSLConfig.cc
+++ b/iocore/net/SSLConfig.cc
@@ -112,6 +112,7 @@ SSLConfigParams::reset()
   serverCertPathOnly = serverCertChainFilename = configFilePath = 
serverCACertFilename = serverCACertPath = clientCertPath =
     clientKeyPath = clientCACertFilename = clientCACertPath = cipherSuite = 
client_cipherSuite = dhparamsFile = serverKeyPathOnly =
       clientKeyPathOnly = clientCertPathOnly = nullptr;
+  ssl_ocsp_response_path_only                = nullptr;
   server_tls13_cipher_suites                 = nullptr;
   client_tls13_cipher_suites                 = nullptr;
   server_groups_list                         = nullptr;
@@ -151,6 +152,8 @@ SSLConfigParams::cleanup()
   client_cipherSuite      = static_cast<char 
*>(ats_free_null(client_cipherSuite));
   dhparamsFile            = static_cast<char *>(ats_free_null(dhparamsFile));
 
+  ssl_ocsp_response_path_only = static_cast<char 
*>(ats_free_null(ssl_ocsp_response_path_only));
+
   server_tls13_cipher_suites = static_cast<char 
*>(ats_free_null(server_tls13_cipher_suites));
   client_tls13_cipher_suites = static_cast<char 
*>(ats_free_null(client_tls13_cipher_suites));
   server_groups_list         = static_cast<char 
*>(ats_free_null(server_groups_list));

Reply via email to