summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-05-24 13:47:16 +0200
committerAndreas Schneider <asn@samba.org>2013-08-05 10:30:00 +0200
commit7bdcfcb37c5b96ee6aa0cecffd89c6d17291fe62 (patch)
tree98261597482830b561f792b8e9e758a73d53b836 /source3
parent0ff8c2d508949f732716e24047694cecf38597df (diff)
downloadsamba-7bdcfcb37c5b96ee6aa0cecffd89c6d17291fe62.tar.gz
samba-7bdcfcb37c5b96ee6aa0cecffd89c6d17291fe62.tar.bz2
samba-7bdcfcb37c5b96ee6aa0cecffd89c6d17291fe62.zip
s3-rpc_cli: pass down ndr_interface_table to rpc_pipe_open_tcp_port().
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 29092aa74a..a378f51a84 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -2419,7 +2419,7 @@ NTSTATUS rpccli_schannel_bind_data(TALLOC_CTX *mem_ctx, const char *domain,
static NTSTATUS rpc_pipe_open_tcp_port(TALLOC_CTX *mem_ctx, const char *host,
const struct sockaddr_storage *ss_addr,
uint16_t port,
- const struct ndr_syntax_id *abstract_syntax,
+ const struct ndr_interface_table *table,
struct rpc_pipe_client **presult)
{
struct rpc_pipe_client *result;
@@ -2432,7 +2432,7 @@ static NTSTATUS rpc_pipe_open_tcp_port(TALLOC_CTX *mem_ctx, const char *host,
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, host);
@@ -2521,7 +2521,7 @@ static NTSTATUS rpc_pipe_get_tcp_port(const char *host,
/* open the connection to the endpoint mapper */
status = rpc_pipe_open_tcp_port(tmp_ctx, host, addr, 135,
- &ndr_table_epmapper.syntax_id,
+ &ndr_table_epmapper,
&epm_pipe);
if (!NT_STATUS_IS_OK(status)) {
@@ -2647,7 +2647,7 @@ NTSTATUS rpc_pipe_open_tcp(TALLOC_CTX *mem_ctx, const char *host,
}
return rpc_pipe_open_tcp_port(mem_ctx, host, addr, port,
- &table->syntax_id, presult);
+ table, presult);
}
/********************************************************************