From 25bf313c5f1cf620879232d864c69b25c39e3f4c Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Mon, 24 Aug 2015 12:35:28 -0700 Subject: [PATCH] Fix for lame clients --- src/core/surface/channel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/surface/channel.c b/src/core/surface/channel.c index 7378929ca4d..78eeed1f598 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(