diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-08-27 13:23:04 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-10-17 08:48:45 +1300 |
commit | 872486bbd039c18eed13f30073a99b7a15f6b1b8 (patch) | |
tree | c88e004a6ec90fc1b62783ab5f3aeedf98f88bf1 /source3/rpc_server | |
parent | d0525289740522a43db2fb7f1364305eeb595070 (diff) | |
download | samba-872486bbd039c18eed13f30073a99b7a15f6b1b8.tar.gz samba-872486bbd039c18eed13f30073a99b7a15f6b1b8.tar.bz2 samba-872486bbd039c18eed13f30073a99b7a15f6b1b8.zip |
s3:rpc_client: pass object and table to rpccli_bh_create()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/rpc_ncacn_np.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpc_server/rpc_ncacn_np.c b/source3/rpc_server/rpc_ncacn_np.c index 9c1599ecf4..c58f97dec9 100644 --- a/source3/rpc_server/rpc_ncacn_np.c +++ b/source3/rpc_server/rpc_ncacn_np.c @@ -640,7 +640,7 @@ struct np_proxy_state *make_external_rpc_pipe_p(TALLOC_CTX *mem_ctx, static NTSTATUS rpc_pipe_open_external(TALLOC_CTX *mem_ctx, const char *pipe_name, - const struct ndr_syntax_id *abstract_syntax, + const struct ndr_interface_table *table, const struct auth_session_info *session_info, struct rpc_pipe_client **_result) { @@ -675,7 +675,7 @@ static NTSTATUS rpc_pipe_open_external(TALLOC_CTX *mem_ctx, goto done; } - result->abstract_syntax = *abstract_syntax; + result->abstract_syntax = table->syntax_id; result->transfer_syntax = ndr_transfer_syntax_ndr; result->desthost = get_myname(result); @@ -696,7 +696,7 @@ static NTSTATUS rpc_pipe_open_external(TALLOC_CTX *mem_ctx, goto done; } - result->binding_handle = rpccli_bh_create(result); + result->binding_handle = rpccli_bh_create(result, NULL, table); if (result->binding_handle == NULL) { status = NT_STATUS_NO_MEMORY; DEBUG(0, ("Failed to create binding handle.\n")); @@ -821,7 +821,7 @@ NTSTATUS rpc_pipe_open_interface(TALLOC_CTX *mem_ctx, * to spoolssd. */ status = rpc_pipe_open_external(tmp_ctx, - pipe_name, &table->syntax_id, + pipe_name, table, session_info, &cli); if (!NT_STATUS_IS_OK(status)) { |