diff options
author | Craig Tiller <ctiller@google.com> | 2015-08-24 12:35:28 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-08-24 12:35:28 -0700 |
commit | 25bf313c5f1cf620879232d864c69b25c39e3f4c (patch) | |
tree | 99ef20cf1eb3a7d91705200d1267f1929899ee4b | |
parent | bc85be10ef420f35d660bc12afb47580acec3143 (diff) |
Fix for lame clients
-rw-r--r-- | src/core/surface/channel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/surface/channel.c b/src/core/surface/channel.c index 7378929ca4..78eeed1f59 100644 --- a/src/core/surface/channel.c +++ b/src/core/surface/channel.c @@ -148,7 +148,8 @@ grpc_channel *grpc_channel_create_from_filters( } } - if (channel->is_client && channel->default_authority == NULL) { + if (channel->is_client && channel->default_authority == NULL && + target != NULL) { char *default_authority = grpc_get_default_authority(target); if (default_authority) { channel->default_authority = grpc_mdelem_from_strings( |