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

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


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 178154a  add a null check to avoid crashing (#7035)
178154a is described below

commit 178154a4db119a35bfd1c0af6905734e1553430c
Author: Fei Deng <[email protected]>
AuthorDate: Thu Jul 23 15:29:16 2020 -0500

    add a null check to avoid crashing (#7035)
    
    (cherry picked from commit 3b6cccf633ca56011960dca7747099b799771f90)
---
 proxy/http/HttpSM.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index 5acf838..6ccd88f 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -4771,6 +4771,9 @@ std::string_view
 HttpSM::get_outbound_cert() const
 {
   const char *cert_name = t_state.txn_conf->ssl_client_cert_filename;
+  if (cert_name == nullptr) {
+    cert_name = "";
+  }
   return std::string_view(cert_name);
 }
 

Reply via email to