aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2015-07-12 01:28:05 -0700
committerGravatar Jan Tattermusch <jtattermusch@google.com>2015-07-12 01:28:05 -0700
commit80e5f044a4f7ee5e1b81a3da8f930d216ca01849 (patch)
tree7338cfcd41e678c9fd5b54685b709624fa8a3852
parentd9e7943994b8bbd79b3785bfc4e2166c0652cf24 (diff)
zero-out channel after creation
-rw-r--r--src/core/surface/channel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/surface/channel.c b/src/core/surface/channel.c
index eeae3b507c..b7826d4dfc 100644
--- a/src/core/surface/channel.c
+++ b/src/core/surface/channel.c
@@ -91,6 +91,7 @@ grpc_channel *grpc_channel_create_from_filters(
size_t size =
sizeof(grpc_channel) + grpc_channel_stack_size(filters, num_filters);
grpc_channel *channel = gpr_malloc(size);
+ memset(channel, 0, sizeof(*channel));
GPR_ASSERT(grpc_is_initialized() && "call grpc_init()");
channel->is_client = is_client;
/* decremented by grpc_channel_destroy */