Fixed dumb reversed conditional.

pull/9539/head
Mark D. Roth 8 years ago
parent b43c7bfb85
commit 539a864d91
  1. 2
      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");

Loading…
Cancel
Save