summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-09-11 20:00:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:51:21 -0500
commit4f024ad3d1fa697bac3db05c27f355dff0941636 (patch)
tree5bc7f5ff9b361d473e67efdca86d4d2f467af0aa
parent85e4a7a5b36f1131ee742f108811e994af9efce9 (diff)
downloadsamba-4f024ad3d1fa697bac3db05c27f355dff0941636.tar.gz
samba-4f024ad3d1fa697bac3db05c27f355dff0941636.tar.bz2
samba-4f024ad3d1fa697bac3db05c27f355dff0941636.zip
r18395: have the ndr layer alloc outgoing structure members for us
(This used to be commit 4fb35eeb44d434b04282c41e98c4a5767e1a8647)
-rw-r--r--source3/rpc_client/ndr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpc_client/ndr.c b/source3/rpc_client/ndr.c
index 985490f71c..82b9079a28 100644
--- a/source3/rpc_client/ndr.c
+++ b/source3/rpc_client/ndr.c
@@ -79,6 +79,8 @@ NTSTATUS cli_do_rpc_ndr(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return NT_STATUS_NO_MEMORY;
}
+ /* have the ndr parser alloc memory for us */
+ pull->flags |= LIBNDR_FLAG_REF_ALLOC;
status = pull_fn(pull, NDR_OUT, data);
talloc_free(pull);