From 9ea794417e8bad3da4236f4071a0d8a23612ac8a Mon Sep 17 00:00:00 2001 From: Davide Sfriso Date: Mon, 17 Nov 2008 15:38:56 -0800 Subject: [PATCH] Fix bug #5906 when running winbindd on a Samba PDC. Winbindd crash on 'getent group' Jeremy. --- source3/winbindd/winbindd_passdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/winbindd/winbindd_passdb.c b/source3/winbindd/winbindd_passdb.c index 0cf4540cfef..101854ae943 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; } -- 2.11.4.GIT