summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-03-08 16:33:50 +0100
committerAndreas Schneider <asn@samba.org>2011-03-09 09:28:42 +0100
commit038042363a41b685f73cdc9ec6413c942c5dd94a (patch)
treeddf0342bbad8f1aa7c8f3fe7884acd116abada78
parentb181cd8465e01fb7334d49725b5deee35a61d68c (diff)
downloadsamba-038042363a41b685f73cdc9ec6413c942c5dd94a.tar.gz
s3-rpc_client: Don't ask endpoint mapper for its own port.
-rw-r--r--source3/rpc_client/cli_pipe.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 26a00547c37..ebbe849ac7b 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -2515,6 +2515,12 @@ static NTSTATUS rpc_pipe_get_tcp_port(const char *host,
goto done;
}
+ if (ndr_syntax_id_equal(abstract_syntax,
+ &ndr_table_epmapper.syntax_id)) {
+ *pport = 135;
+ return NT_STATUS_OK;
+ }
+
/* open the connection to the endpoint mapper */
status = rpc_pipe_open_tcp_port(tmp_ctx, host, 135,
&ndr_table_epmapper.syntax_id,