summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Sfriso <sfriso@virgilio.it>2008-11-17 15:38:56 -0800
committerJeremy Allison <jra@samba.org>2008-11-17 15:38:56 -0800
commit9ea794417e8bad3da4236f4071a0d8a23612ac8a (patch)
treee108e6507880cd47b42136a62329fe4688b12b3a
parentd8df43e65d507710de72c6743f43127ad14019fc (diff)
downloadsamba-9ea794417e8bad3da4236f4071a0d8a23612ac8a.tar.gz
samba-9ea794417e8bad3da4236f4071a0d8a23612ac8a.tar.bz2
samba-9ea794417e8bad3da4236f4071a0d8a23612ac8a.zip
Fix bug #5906 when running winbindd on a Samba PDC. Winbindd crash on 'getent group'
Jeremy.
-rw-r--r--source3/winbindd/winbindd_passdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_passdb.c b/source3/winbindd/winbindd_passdb.c
index 0cf4540cfe..101854ae94 100644
--- a/source3/winbindd/winbindd_passdb.c
+++ b/source3/winbindd/winbindd_passdb.c
@@ -639,13 +639,13 @@ static NTSTATUS sam_lookup_groupmem(struct winbindd_domain *domain,
sid_type_lookup(lsa_names[i].type)));
continue;
}
- if (!((*names)[i] = talloc_strdup((*names),
+ if (!((*names)[num_mapped] = talloc_strdup((*names),
lsa_names[i].name))) {
TALLOC_FREE(tmp_ctx);
return NT_STATUS_NO_MEMORY;
}
- (*name_types)[i] = lsa_names[i].type;
+ (*name_types)[num_mapped] = lsa_names[i].type;
num_mapped += 1;
}