aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-12-27 15:29:54 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-12-27 15:29:54 -0800
commit00a2d18234269e901deb7da22063c7fda210d7ee (patch)
tree0a64656337edb4ee7a719c420738d87015d835a6 /src
parentef6938477b5019fea4f0ed7da06cc1f974f29438 (diff)
Fix flipped conditional
Diffstat (limited to 'src')
-rw-r--r--src/core/lib/surface/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/surface/channel.c b/src/core/lib/surface/channel.c
index 6744570b44..f2708fdf43 100644
--- a/src/core/lib/surface/channel.c
+++ b/src/core/lib/surface/channel.c
@@ -136,7 +136,7 @@ grpc_channel *grpc_channel_create(grpc_exec_ctx *exec_ctx, const char *target,
gpr_log(GPR_ERROR, "%s ignored: it must be a string",
GRPC_SSL_TARGET_NAME_OVERRIDE_ARG);
} else {
- if (GRPC_MDISNULL(channel->default_authority)) {
+ if (!GRPC_MDISNULL(channel->default_authority)) {
/* other ways of setting this (notably ssl) take precedence */
gpr_log(GPR_ERROR,
"%s ignored: default host already set some other way",