diff options
author | 2017-11-13 17:09:10 -0800 | |
---|---|---|
committer | 2017-11-13 17:09:10 -0800 | |
commit | d9d5c8f100b0f9b7bcbba2480d85053cf6ccbf88 (patch) | |
tree | 057c56d29a4ebfac5c0f7fddc5d85276d16f7205 /src/core/lib/security/transport | |
parent | 6870e6f1fdfe150cb5d3b391cf9a6f667e14c50c (diff) |
clang fmt
Diffstat (limited to 'src/core/lib/security/transport')
-rw-r--r-- | src/core/lib/security/transport/security_connector.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/lib/security/transport/security_connector.cc b/src/core/lib/security/transport/security_connector.cc index 93e6896f70..5c508fabea 100644 --- a/src/core/lib/security/transport/security_connector.cc +++ b/src/core/lib/security/transport/security_connector.cc @@ -598,7 +598,7 @@ static void ssl_channel_add_handshakers(grpc_exec_ctx* exec_ctx, tsi_result result = tsi_ssl_client_handshaker_factory_create_handshaker( c->client_handshaker_factory, c->overridden_target_name != nullptr ? c->overridden_target_name - : c->target_name, + : c->target_name, &tsi_hs); if (result != TSI_OK) { gpr_log(GPR_ERROR, "Handshaker creation failed with error %s.", @@ -909,7 +909,8 @@ static bool ssl_channel_check_call_host(grpc_exec_ctx* exec_ctx, /* If the target name was overridden, then the original target_name was 'checked' transitively during the previous peer check at the end of the handshake. */ - if (c->overridden_target_name != nullptr && strcmp(host, c->target_name) == 0) { + if (c->overridden_target_name != nullptr && + strcmp(host, c->target_name) == 0) { status = GRPC_SECURITY_OK; } if (status != GRPC_SECURITY_OK) { |