diff options
author | 2015-01-28 09:03:50 -0800 | |
---|---|---|
committer | 2015-01-28 09:03:50 -0800 | |
commit | eaa344b59ebef17959452f3fb89c01c5eaa1aabc (patch) | |
tree | 16b3570f4900b4ae3132bb64a3ba9573f9f10a0e /src/core/surface/server.c | |
parent | 23aa6c4320c82c565cfeb3591976e8e4d894da45 (diff) |
Allocate required memory
Diffstat (limited to 'src/core/surface/server.c')
-rw-r--r-- | src/core/surface/server.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/surface/server.c b/src/core/surface/server.c index bb50419488..fe03369ccc 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); } |