Fix for lame clients
diff --git a/src/core/surface/channel.c b/src/core/surface/channel.c
index 7378929..78eeed1 100644
--- a/src/core/surface/channel.c
+++ b/src/core/surface/channel.c
@@ -148,7 +148,8 @@
}
}
- 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(