summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-17 12:18:29 +0100
committerVolker Lendecke <vl@samba.org>2009-01-18 15:40:44 +0100
commit5e6f3eaae9435b1ab7b36726e7b898d4994fcebf (patch)
tree2bb36b1d262f8e834196d4ccd4d7eb6ea54c1a36 /source3/include
parent5987c8269779ca2a7207c37a94b0e841a380d7d1 (diff)
downloadsamba-5e6f3eaae9435b1ab7b36726e7b898d4994fcebf.tar.gz
samba-5e6f3eaae9435b1ab7b36726e7b898d4994fcebf.tar.bz2
samba-5e6f3eaae9435b1ab7b36726e7b898d4994fcebf.zip
Move initialization of the reply prs_struct to rpc_api_pipe
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h2
-rw-r--r--source3/include/rpc_client.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index d644b09a6a..9210a5cfe2 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -5197,7 +5197,7 @@ NTSTATUS rpccli_netlogon_set_trust_password(struct rpc_pipe_client *cli,
/* The following definitions come from rpc_client/cli_pipe.c */
-NTSTATUS rpc_api_pipe_req(struct rpc_pipe_client *cli,
+NTSTATUS rpc_api_pipe_req(TALLOC_CTX *mem_ctx, struct rpc_pipe_client *cli,
uint8 op_num,
prs_struct *in_data,
prs_struct *out_data);
diff --git a/source3/include/rpc_client.h b/source3/include/rpc_client.h
index 684044b871..61b861c3b4 100644
--- a/source3/include/rpc_client.h
+++ b/source3/include/rpc_client.h
@@ -49,9 +49,8 @@
if (!prs_init( &q_ps, RPC_MAX_PDU_FRAG_LEN, ctx, MARSHALL )) { \
return WERR_NOMEM;\
}\
- prs_init_empty( &r_ps, ctx, UNMARSHALL );\
if ( q_io_fn("", &q_in, &q_ps, 0) ) {\
- NTSTATUS _smb_pipe_stat_ = rpc_api_pipe_req(pcli, opnum, &q_ps, &r_ps); \
+ NTSTATUS _smb_pipe_stat_ = rpc_api_pipe_req(ctx, pcli, opnum, &q_ps, &r_ps); \
if (!NT_STATUS_IS_OK(_smb_pipe_stat_)) {\
prs_mem_free( &q_ps );\
prs_mem_free( &r_ps );\