summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher R. Hertel <crh@samba.org>2003-01-07 04:26:37 +0000
committerChristopher R. Hertel <crh@samba.org>2003-01-07 04:26:37 +0000
commite8a70338d94810871a117d3f96e6cc1f13e8d3a9 (patch)
treec494106c6c1541537a2f92b076c30103ba523b00
parentebf35917bc0d21d8dcf7b9f0119762e1350382ff (diff)
downloadsamba-e8a70338d94810871a117d3f96e6cc1f13e8d3a9.tar.gz
samba-e8a70338d94810871a117d3f96e6cc1f13e8d3a9.tar.bz2
samba-e8a70338d94810871a117d3f96e6cc1f13e8d3a9.zip
Added code to the handling of the -M option to ensure that we default to
port 139 for that option. The NetBIOS Messenger Service doesn't run on a non-NBT port. (This used to be commit a10195b7112b0a7cca3ddb5be2566364c59fefb7)
-rw-r--r--source3/client/client.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index feb9e07d16..bdcf60bb85 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -2839,8 +2839,14 @@ static void remember_query_host(const char *arg,
pstrcpy(new_name_resolve_order, optarg);
break;
case 'M':
- name_type = 0x03; /* messages are sent to NetBIOS name type 0x3 */
+ /* Messages are sent to NetBIOS name type 0x3
+ * (Messenger Service). Make sure we default
+ * to port 139 instead of port 445. srl,crh
+ */
+ name_type = 0x03;
pstrcpy(desthost,optarg);
+ if( 0 == port )
+ port = 139;
message = True;
break;
case 'i':