summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/dcerpc_tcp.c2
-rw-r--r--source4/librpc/rpc/dcerpc_util.c6
2 files changed, 4 insertions, 4 deletions
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;
}