aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/surface/channel.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-08-24 12:35:28 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-08-24 12:35:28 -0700
commit25bf313c5f1cf620879232d864c69b25c39e3f4c (patch)
tree99ef20cf1eb3a7d91705200d1267f1929899ee4b /src/core/surface/channel.c
parentbc85be10ef420f35d660bc12afb47580acec3143 (diff)
Fix for lame clients
Diffstat (limited to 'src/core/surface/channel.c')
-rw-r--r--src/core/surface/channel.c3
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(