Undo changes to ssl_credentials.cc

reviewable/pr14615/r6
David Garcia Quintas 7 years ago
parent 2f6fc700de
commit 2040ae1ff4
  1. 2
      src/core/lib/security/credentials/ssl/ssl_credentials.cc

@ -58,7 +58,7 @@ static grpc_security_status ssl_create_security_connector(
const char* overridden_target_name = nullptr; const char* overridden_target_name = nullptr;
for (size_t i = 0; args && i < args->num_args; i++) { for (size_t i = 0; args && i < args->num_args; i++) {
grpc_arg* arg = &args->args[i]; grpc_arg* arg = &args->args[i];
if (strcmp(arg->key, GRPC_ARG_DEFAULT_AUTHORITY) == 0 && if (strcmp(arg->key, GRPC_SSL_TARGET_NAME_OVERRIDE_ARG) == 0 &&
arg->type == GRPC_ARG_STRING) { arg->type == GRPC_ARG_STRING) {
overridden_target_name = arg->value.string; overridden_target_name = arg->value.string;
break; break;

Loading…
Cancel
Save