diff options
author | 2018-03-14 12:50:48 -0700 | |
---|---|---|
committer | 2018-03-14 12:50:48 -0700 | |
commit | f73e76d59682faa44b382e83c9d36c9664d15c23 (patch) | |
tree | c58f341d921432c93f1de60a045099ddb3e129d1 /src/core/lib/surface | |
parent | 2040ae1ff41620b769f7ca9152b91010a54c3054 (diff) |
Fix check in channel.cc and tweak direct channel tests
Diffstat (limited to 'src/core/lib/surface')
-rw-r--r-- | src/core/lib/surface/channel.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/surface/channel.cc b/src/core/lib/surface/channel.cc index 274dfe38bf..9d38fe9c71 100644 --- a/src/core/lib/surface/channel.cc +++ b/src/core/lib/surface/channel.cc @@ -156,7 +156,7 @@ static grpc_core::UniquePtr<char> get_default_authority( default_authority.reset(gpr_strdup(ssl_override)); } if (channel_stack_type == GRPC_CLIENT_DIRECT_CHANNEL && - default_authority == nullptr) { + !has_default_authority) { gpr_log(GPR_ERROR, "Direct channels must specify a value for the " "GRPC_ARG_DEFAULT_AUTHORITY channel arg."); |