summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-01-30 09:23:40 +0100
committerGünther Deschner <gd@samba.org>2014-02-11 16:20:31 +0100
commitded957614bf70560f3ffa6b6021eba37f2e2dbbb (patch)
tree00964f614b0f9be1f5a0e50bb68cf995bd0cab86 /source3/rpc_client
parent98b08dfb6db0accaf7c893adf695e1d0f0b05ade (diff)
downloadsamba-ded957614bf70560f3ffa6b6021eba37f2e2dbbb.tar.gz
s3:rpc_client: use address "0.0.0.0" and port "135" for epmapper requests
Note: binding->host = NULL lets dcerpc_binding_build_tower() use "0.0.0.0". This matches Windows clients. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index ce29ecb801a..39ddb2e8b15 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -2582,8 +2582,8 @@ static NTSTATUS rpc_pipe_get_tcp_port(const char *host,
map_binding->transport = NCACN_IP_TCP;
map_binding->object = table->syntax_id;
- map_binding->host = host; /* needed? */
- map_binding->endpoint = "0"; /* correct? needed? */
+ map_binding->host = NULL;
+ map_binding->endpoint = "135";
map_tower = talloc_zero(tmp_ctx, struct epm_twr_t);
if (map_tower == NULL) {