summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-05-24 13:40:45 +0200
committerAndreas Schneider <asn@samba.org>2013-08-05 10:30:00 +0200
commit8cd3a060514ddcc178c938100edfb0b177c00c8c (patch)
treea37d93a2455708061ebb896e0331b5d2513d2594 /source3
parent34cc4b409558f229fba24f59e81ef9100a851d24 (diff)
downloadsamba-8cd3a060514ddcc178c938100edfb0b177c00c8c.tar.gz
samba-8cd3a060514ddcc178c938100edfb0b177c00c8c.tar.bz2
samba-8cd3a060514ddcc178c938100edfb0b177c00c8c.zip
s3-rpc_cli: pass down ndr_interface_table to rpc_pipe_open_np().
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_pipe.c8
1 files changed, 4 insertions, 4 deletions
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;
}