diff options
Diffstat (limited to 'source4/librpc')
-rw-r--r-- | source4/librpc/idl/epmapper.idl | 2 | ||||
-rw-r--r-- | source4/librpc/rpc/dcerpc_tcp.c | 2 | ||||
-rw-r--r-- | source4/librpc/rpc/dcerpc_util.c | 6 |
3 files changed, 6 insertions, 4 deletions
diff --git a/source4/librpc/idl/epmapper.idl b/source4/librpc/idl/epmapper.idl index 78070aefff..e09d729c81 100644 --- a/source4/librpc/idl/epmapper.idl +++ b/source4/librpc/idl/epmapper.idl @@ -24,6 +24,8 @@ interface epmapper const string NDR_GUID = "8a885d04-1ceb-11c9-9fe8-08002b104860"; const string NDR_GUID_VERSION = 2; + const uint32 EPMAPPER_PORT = 135; + typedef struct { GUID uuid; uint16 version; diff --git a/source4/librpc/rpc/dcerpc_tcp.c b/source4/librpc/rpc/dcerpc_tcp.c index b3523e6855..c50b71c3f0 100644 --- a/source4/librpc/rpc/dcerpc_tcp.c +++ b/source4/librpc/rpc/dcerpc_tcp.c @@ -153,7 +153,7 @@ NTSTATUS dcerpc_pipe_open_tcp(struct dcerpc_pipe **p, struct in_addr addr; if (port == 0) { - port = 135; + port = EPMAPPER_PORT; } addr.s_addr = interpret_addr(server); diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c index 1f349e9a4b..fa69425ab0 100644 --- a/source4/librpc/rpc/dcerpc_util.c +++ b/source4/librpc/rpc/dcerpc_util.c @@ -62,13 +62,13 @@ 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) { + if (strcasecmp(uuid, DCERPC_EPMAPPER_UUID) == 0) { /* don't lookup epmapper via epmapper! */ - *port = 135; + *port = EPMAPPER_PORT; return NT_STATUS_OK; } - status = dcerpc_pipe_open_tcp(&p, server, 135); + status = dcerpc_pipe_open_tcp(&p, server, EPMAPPER_PORT); if (!NT_STATUS_IS_OK(status)) { return status; } |