diff options
author | 2018-06-18 09:37:46 -0700 | |
---|---|---|
committer | 2018-06-18 09:39:09 -0700 | |
commit | 09d7da2652e64c38267bde4ba9c52673e2b97f32 (patch) | |
tree | fbdd9fbc058fa2c55a60044c1bd88bf429e4aa28 /src/core/ext/transport/chttp2/client/authority.cc | |
parent | 16ad9b828073579d0c6364570a3803b26e7fb39d (diff) | |
parent | a2769d5ee4116152eead50678741906b1667923b (diff) |
Merge branch 'master' into epollex-ownerfd-fix
Diffstat (limited to 'src/core/ext/transport/chttp2/client/authority.cc')
-rw-r--r-- | src/core/ext/transport/chttp2/client/authority.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/ext/transport/chttp2/client/authority.cc b/src/core/ext/transport/chttp2/client/authority.cc index e3ef47c199..bad3153b01 100644 --- a/src/core/ext/transport/chttp2/client/authority.cc +++ b/src/core/ext/transport/chttp2/client/authority.cc @@ -28,8 +28,9 @@ grpc_channel_args* grpc_default_authority_add_if_not_present( size_t num_new_args = 0; grpc_core::UniquePtr<char> default_authority; if (!has_default_authority) { - const char* server_uri_str = - grpc_channel_args_get_string(args, GRPC_ARG_SERVER_URI); + const grpc_arg* server_uri_arg = + grpc_channel_args_find(args, GRPC_ARG_SERVER_URI); + const char* server_uri_str = grpc_channel_arg_get_string(server_uri_arg); GPR_ASSERT(server_uri_str != nullptr); default_authority = grpc_core::ResolverRegistry::GetDefaultAuthority(server_uri_str); |