From 0ff8c2d508949f732716e24047694cecf38597df Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 24 May 2013 13:46:07 +0200 Subject: s3-rpc_cli: pass down ndr_interface_table to rpc_pipe_get_tcp_port(). 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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3/rpc_client') diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 3934cc6996..29092aa74a 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -2490,7 +2490,7 @@ static NTSTATUS rpc_pipe_open_tcp_port(TALLOC_CTX *mem_ctx, const char *host, */ static NTSTATUS rpc_pipe_get_tcp_port(const char *host, const struct sockaddr_storage *addr, - const struct ndr_syntax_id *abstract_syntax, + const struct ndr_interface_table *table, uint16_t *pport) { NTSTATUS status; @@ -2513,7 +2513,7 @@ static NTSTATUS rpc_pipe_get_tcp_port(const char *host, goto done; } - if (ndr_syntax_id_equal(abstract_syntax, + if (ndr_syntax_id_equal(&table->syntax_id, &ndr_table_epmapper.syntax_id)) { *pport = 135; return NT_STATUS_OK; @@ -2548,7 +2548,7 @@ static NTSTATUS rpc_pipe_get_tcp_port(const char *host, } map_binding->transport = NCACN_IP_TCP; - map_binding->object = *abstract_syntax; + map_binding->object = table->syntax_id; map_binding->host = host; /* needed? */ map_binding->endpoint = "0"; /* correct? needed? */ @@ -2584,7 +2584,7 @@ static NTSTATUS rpc_pipe_get_tcp_port(const char *host, status = dcerpc_epm_Map(epm_handle, tmp_ctx, discard_const_p(struct GUID, - &(abstract_syntax->uuid)), + &(table->syntax_id.uuid)), map_tower, entry_handle, max_towers, @@ -2641,7 +2641,7 @@ NTSTATUS rpc_pipe_open_tcp(TALLOC_CTX *mem_ctx, const char *host, NTSTATUS status; uint16_t port = 0; - status = rpc_pipe_get_tcp_port(host, addr, &table->syntax_id, &port); + status = rpc_pipe_get_tcp_port(host, addr, table, &port); if (!NT_STATUS_IS_OK(status)) { return status; } -- cgit