summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-27 04:04:31 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-27 04:04:31 +0000
commit61bb3c865c4d4324cd2c1ea7d8b337b15dd66493 (patch)
tree31b4f026c7260e7c1e464b486bc86d7924be31e5 /source4
parenta9203bf02b61180049bc60e7010acaff07c73947 (diff)
downloadsamba-61bb3c865c4d4324cd2c1ea7d8b337b15dd66493.tar.gz
samba-61bb3c865c4d4324cd2c1ea7d8b337b15dd66493.tar.bz2
samba-61bb3c865c4d4324cd2c1ea7d8b337b15dd66493.zip
use EPMAPPER_PORT constant instead of 135
(This used to be commit 953ab587dc5a625d0fb557fdcac122a3b2ed0224)
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/idl/epmapper.idl2
-rw-r--r--source4/librpc/rpc/dcerpc_tcp.c2
-rw-r--r--source4/librpc/rpc/dcerpc_util.c6
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;
}