summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-12-16 11:25:37 +0100
committerStefan Metzmacher <metze@samba.org>2011-12-16 11:31:48 +0100
commit0e04cc2ea4b19ec024c9839ec93e99e417064174 (patch)
treea6a8e83f949f471086852d2bd12eb8f74b299114
parent17781b1c863332b9a808b8052119b70b122ff9f3 (diff)
downloadsamba-0e04cc2ea4b19ec024c9839ec93e99e417064174.tar.gz
samba-0e04cc2ea4b19ec024c9839ec93e99e417064174.tar.bz2
samba-0e04cc2ea4b19ec024c9839ec93e99e417064174.zip
s4:libcli/rap: call->ndr_push_{param,data} can be talloc childs of 'call'
metze
-rw-r--r--source4/libcli/rap/rap.c4
1 files 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;