1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

[FIX Bug 6235] domain enumeration breaks if master browser has space in name

Jeremy: please review to ensure this doesn't appear to break anything

The function name_status_find() is documented as used for finding a server's
name given its IP address. It was, however, looking for the first matching
name which could be a group name at times. This fix ensures that group names
are skipped when scanning for a matching name.

Derrell
This commit is contained in:
Derrell Lipman 2009-04-27 09:27:52 -04:00
parent 65527216f1
commit 641e12561a

View File

@ -408,7 +408,8 @@ bool name_status_find(const char *q_name,
goto done;
for (i=0;i<count;i++) {
if (status[i].type == type)
/* Find first one of the requested type that's not a GROUP. */
if (status[i].type == type && ! (status[i].flags & 0x80))
break;
}
if (i == count)