Skip to content

Commit

Permalink
skip empty sni (#1909)
Browse files Browse the repository at this point in the history
Signed-off-by: Kuat Yessenov <kuat@google.com>
  • Loading branch information
kyessenov authored and istio-testing committed Aug 10, 2018
1 parent ec327ad commit 7fde77a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/envoy/utils/utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ bool IsMutualTLS(const Network::Connection* connection) {

bool GetRequestedServerName(const Network::Connection* connection,
std::string* name) {
if (connection) {
if (connection && !connection->requestedServerName().empty()) {
*name = std::string(connection->requestedServerName());
return true;
}
Expand Down

0 comments on commit 7fde77a

Please sign in to comment.