Skip to content

Commit

Permalink
add a null check to avoid crashing (apache#7035)
Browse files Browse the repository at this point in the history
  • Loading branch information
duke8253 authored and Damian Meden committed Sep 2, 2020
1 parent b3d0ce1 commit 5f63b54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proxy/http/HttpSM.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4811,6 +4811,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);
}

Expand Down

0 comments on commit 5f63b54

Please sign in to comment.