From b873ac916eadbaa32716f6b0b4813696d157e7d2 Mon Sep 17 00:00:00 2001 From: Jorge Canizales Date: Tue, 22 Sep 2015 14:21:36 -0700 Subject: [PATCH] Fix mutex bug --- src/core/surface/secure_channel_create.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/surface/secure_channel_create.c b/src/core/surface/secure_channel_create.c index 52c5e93988c..08c0a4ff959 100644 --- a/src/core/surface/secure_channel_create.c +++ b/src/core/surface/secure_channel_create.c @@ -197,6 +197,7 @@ static grpc_subchannel *subchannel_factory_create_subchannel( memset(c, 0, sizeof(*c)); c->base.vtable = &connector_vtable; c->security_connector = f->security_connector; + gpr_mu_init(&c->mu); gpr_ref_init(&c->refs, 1); args->mdctx = f->mdctx; args->args = final_args;