From eaa344b59ebef17959452f3fb89c01c5eaa1aabc Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Wed, 28 Jan 2015 09:03:50 -0800 Subject: [PATCH] Allocate required memory --- src/core/surface/server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/surface/server.c b/src/core/surface/server.c index bb50419488e..fe03369ccc8 100644 --- a/src/core/surface/server.c +++ b/src/core/surface/server.c @@ -732,6 +732,8 @@ static void begin_legacy_request(grpc_server *server, grpc_completion_queue *cq, } req.op = GRPC_IOREQ_RECV_INITIAL_METADATA; req.data.recv_metadata = initial_metadata; + calld->legacy = gpr_malloc(sizeof(legacy_data)); + memset(calld->legacy, 0, sizeof(legacy_data)); grpc_call_start_ioreq_and_call_back(calld->call, &req, 1, publish_legacy_request, tag); }