From 41508f117535f0429626c1e35f5f3269db27c3ea Mon Sep 17 00:00:00 2001
From: Craig Tiller <ctiller@google.com>
Date: Fri, 29 May 2015 08:50:08 -0700
Subject: [PATCH] Fix memory corruption bug

---
 src/core/surface/server.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/surface/server.c b/src/core/surface/server.c
index b1e3ec9876..20985af44c 100644
--- a/src/core/surface/server.c
+++ b/src/core/surface/server.c
@@ -828,7 +828,7 @@ void grpc_server_shutdown_and_notify(grpc_server *server,
   grpc_cq_begin_op(cq, NULL);
   server->shutdown_tags =
       gpr_realloc(server->shutdown_tags,
-                  sizeof(void *) * (server->num_shutdown_tags + 1));
+                  sizeof(shutdown_tag) * (server->num_shutdown_tags + 1));
   sdt = &server->shutdown_tags[server->num_shutdown_tags++];
   sdt->tag = tag;
   sdt->cq = cq;
-- 
GitLab