Fix for lame clients

pull/3035/head
Craig Tiller 9 years ago
parent bc85be10ef
commit 25bf313c5f
  1. 3
      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(

Loading…
Cancel
Save