From 8cd3a060514ddcc178c938100edfb0b177c00c8c Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 24 May 2013 13:40:45 +0200 Subject: s3-rpc_cli: pass down ndr_interface_table to rpc_pipe_open_np(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Signed-off-by: Günther Deschner Reviewed-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- source3/rpc_client/cli_pipe.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/rpc_client') diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index c5fdd9bb97..632a42b9ac 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -2747,7 +2747,7 @@ static int rpc_pipe_client_np_ref_destructor(struct rpc_pipe_client_np_ref *np_r ****************************************************************************/ static NTSTATUS rpc_pipe_open_np(struct cli_state *cli, - const struct ndr_syntax_id *abstract_syntax, + const struct ndr_interface_table *table, struct rpc_pipe_client **presult) { struct rpc_pipe_client *result; @@ -2765,7 +2765,7 @@ static NTSTATUS rpc_pipe_open_np(struct cli_state *cli, return NT_STATUS_NO_MEMORY; } - result->abstract_syntax = *abstract_syntax; + result->abstract_syntax = table->syntax_id; result->transfer_syntax = ndr_transfer_syntax_ndr; result->desthost = talloc_strdup(result, smbXcli_conn_remote_name(cli->conn)); result->srv_name_slash = talloc_asprintf_strupper_m( @@ -2779,7 +2779,7 @@ static NTSTATUS rpc_pipe_open_np(struct cli_state *cli, return NT_STATUS_NO_MEMORY; } - status = rpc_transport_np_init(result, cli, abstract_syntax, + status = rpc_transport_np_init(result, cli, &table->syntax_id, &result->transport); if (!NT_STATUS_IS_OK(status)) { TALLOC_FREE(result); @@ -2825,7 +2825,7 @@ static NTSTATUS cli_rpc_pipe_open(struct cli_state *cli, smbXcli_conn_remote_sockaddr(cli->conn), &table->syntax_id, presult); case NCACN_NP: - return rpc_pipe_open_np(cli, &table->syntax_id, presult); + return rpc_pipe_open_np(cli, table, presult); default: return NT_STATUS_NOT_IMPLEMENTED; } -- cgit