From 539a864d913337658fa60b859b2df2fe958755b1 Mon Sep 17 00:00:00 2001 From: "Mark D. Roth" <roth@google.com> Date: Thu, 2 Feb 2017 07:23:19 -0800 Subject: [PATCH] Fixed dumb reversed conditional. --- .../ext/transport/chttp2/client/secure/secure_channel_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ext/transport/chttp2/client/secure/secure_channel_create.c b/src/core/ext/transport/chttp2/client/secure/secure_channel_create.c index cbdd9fbc37..d3e53984f2 100644 --- a/src/core/ext/transport/chttp2/client/secure/secure_channel_create.c +++ b/src/core/ext/transport/chttp2/client/secure/secure_channel_create.c @@ -144,7 +144,7 @@ grpc_channel *grpc_secure_channel_create(grpc_channel_credentials *creds, "secure_client_channel_factory_create_channel"); grpc_channel_args_destroy(&exec_ctx, new_args); grpc_exec_ctx_finish(&exec_ctx); - return channel == NULL ? channel + return channel != NULL ? channel : grpc_lame_client_channel_create( target, GRPC_STATUS_INTERNAL, "Failed to create secure client channel"); -- GitLab