]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix bug #6532.
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>
Fri, 2 Oct 2009 10:22:25 +0000 (12:22 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 2 Oct 2009 10:26:23 +0000 (12:26 +0200)
Domain enumeration breaks if master browser has space in name.

source/libsmb/namequery.c

index cf8c20e47f84f46bfaccf70da93ee650aac46542..66e6910d53673981f50f5474f600f5a9498584a0 100644 (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)