[s3]winbindd_group: sanely handle NULL domain in add_member().
authorMichael Adam <obnox@samba.org>
Sun, 21 Sep 2008 00:06:44 +0000 (02:06 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 23 Sep 2008 08:00:26 +0000 (10:00 +0200)
Michael

source3/winbindd/winbindd_group.c

index 088f946877824093a2c6896a795411e43b701cd8..b2bba095371541bb818c0b2aea944e8dbf5f768c 100644 (file)
@@ -35,7 +35,11 @@ static void add_member(const char *domain, const char *user,
 {
        fstring name;
 
-       fill_domain_username(name, domain, user, True);
+       if (domain != NULL) {
+               fill_domain_username(name, domain, user, True);
+       } else {
+               fstrcpy(name, user);
+       }
        safe_strcat(name, ",", sizeof(name)-1);
        string_append(pp_members, name);
        *p_num_members += 1;