mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
Patch from Andy Levine andyl@epicrealm.com who discovered that W2K DMB's
return empty NetServerEnum2 on port 445, but not on port 139. Jeremy. (This used to be commit a9112a1e4b24ccd94be4d0d055ddc9d1bdfef1be)
This commit is contained in:
parent
31737ace97
commit
96cf2abf9d
@ -70,7 +70,11 @@ static void sync_child(char *name, int nm_type,
|
||||
uint32 local_type = local ? SV_TYPE_LOCAL_LIST_ONLY : 0;
|
||||
struct nmb_name called, calling;
|
||||
|
||||
if (!cli_initialise(&cli) || !cli_connect(&cli, name, &ip)) {
|
||||
/* W2K DMB's return empty browse lists on port 445. Use 139.
|
||||
* Patch from Andy Levine andyl@epicrealm.com.
|
||||
*/
|
||||
|
||||
if (!cli_initialise(&cli) || !cli_set_port(&cli, 139) || !cli_connect(&cli, name, &ip)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user