diff options
Diffstat (limited to 'source4/librpc/rpc/dcerpc_util.c')
-rw-r--r-- | source4/librpc/rpc/dcerpc_util.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c index 32d940bc88..1f349e9a4b 100644 --- a/source4/librpc/rpc/dcerpc_util.c +++ b/source4/librpc/rpc/dcerpc_util.c @@ -62,6 +62,12 @@ NTSTATUS dcerpc_epm_map_tcp_port(const char *server, GUID guid; struct epm_twr_t twr, *twr_r; + if (strcmp(uuid, DCERPC_EPMAPPER_UUID) == 0) { + /* don't lookup epmapper via epmapper! */ + *port = 135; + return NT_STATUS_OK; + } + status = dcerpc_pipe_open_tcp(&p, server, 135); if (!NT_STATUS_IS_OK(status)) { return status; |