From 0e04cc2ea4b19ec024c9839ec93e99e417064174 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 16 Dec 2011 11:25:37 +0100 Subject: [PATCH] s4:libcli/rap: call->ndr_push_{param,data} can be talloc childs of 'call' metze --- source4/libcli/rap/rap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/libcli/rap/rap.c b/source4/libcli/rap/rap.c index bebe9fb1dd..e08a650355 100644 --- a/source4/libcli/rap/rap.c +++ b/source4/libcli/rap/rap.c @@ -38,10 +38,10 @@ struct rap_call *new_rap_cli_call(TALLOC_CTX *mem_ctx, uint16_t callno) call->callno = callno; call->rcv_paramlen = 4; - call->ndr_push_param = ndr_push_init_ctx(mem_ctx); + call->ndr_push_param = ndr_push_init_ctx(call); call->ndr_push_param->flags = RAPNDR_FLAGS; - call->ndr_push_data = ndr_push_init_ctx(mem_ctx); + call->ndr_push_data = ndr_push_init_ctx(call); call->ndr_push_data->flags = RAPNDR_FLAGS; return call; -- 2.34.1