diff options
author | Andreas Schneider <asn@samba.org> | 2011-03-08 16:33:50 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2011-03-09 09:28:42 +0100 |
commit | 038042363a41b685f73cdc9ec6413c942c5dd94a (patch) | |
tree | ddf0342bbad8f1aa7c8f3fe7884acd116abada78 | |
parent | b181cd8465e01fb7334d49725b5deee35a61d68c (diff) | |
download | samba-038042363a41b685f73cdc9ec6413c942c5dd94a.tar.gz samba-038042363a41b685f73cdc9ec6413c942c5dd94a.tar.bz2 samba-038042363a41b685f73cdc9ec6413c942c5dd94a.zip |
s3-rpc_client: Don't ask endpoint mapper for its own port.
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 26a00547c3..ebbe849ac7 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, |