mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
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 commit is contained in:
parent
232116d2db
commit
02986f3e3a
@ -2839,8 +2839,14 @@ static void remember_query_host(const char *arg,
|
|||||||
pstrcpy(new_name_resolve_order, optarg);
|
pstrcpy(new_name_resolve_order, optarg);
|
||||||
break;
|
break;
|
||||||
case 'M':
|
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);
|
pstrcpy(desthost,optarg);
|
||||||
|
if( 0 == port )
|
||||||
|
port = 139;
|
||||||
message = True;
|
message = True;
|
||||||
break;
|
break;
|
||||||
case 'i':
|
case 'i':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user