]> git.samba.org - mat/samba.git/commitdiff
s3-rpc_client: Don't ask endpoint mapper for its own port.
authorAndreas Schneider <asn@samba.org>
Tue, 8 Mar 2011 15:33:50 +0000 (16:33 +0100)
committerAndreas Schneider <asn@samba.org>
Wed, 9 Mar 2011 08:28:42 +0000 (09:28 +0100)
source3/rpc_client/cli_pipe.c

index 26a00547c3738665c23660536f9b63e10e914e25..ebbe849ac7bcf1414de602cbc6e3f2b4caa02f1a 100644 (file)
@@ -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,