diff options
author | Jeremy Allison <jra@samba.org> | 2002-09-10 17:24:17 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-09-10 17:24:17 +0000 |
commit | 96cf2abf9dfd72d5a2c8565d9894f9072f1ce04e (patch) | |
tree | 480725d344694777df16603a0a90fb9921dcbff6 /source3 | |
parent | 31737ace97c3b614adb66a228157e20a43e31054 (diff) | |
download | samba-96cf2abf9dfd72d5a2c8565d9894f9072f1ce04e.tar.gz samba-96cf2abf9dfd72d5a2c8565d9894f9072f1ce04e.tar.bz2 samba-96cf2abf9dfd72d5a2c8565d9894f9072f1ce04e.zip |
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)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nmbd/nmbd_synclists.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_synclists.c b/source3/nmbd/nmbd_synclists.c index bf03d4d1cf..24adf4e69f 100644 --- a/source3/nmbd/nmbd_synclists.c +++ b/source3/nmbd/nmbd_synclists.c @@ -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; } |