From: Jeremy Allison Date: Wed, 11 Feb 2009 19:35:51 +0000 (-0800) Subject: Fix bug #5906 - Winbindd crash on 'getent group' (INTERNAL ERROR: Signal 11). X-Git-Tag: samba-3.0.36~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99ad00efd7d3d0990ec20e0f278d63cf55167d0c;p=thirdparty%2Fsamba.git Fix bug #5906 - Winbindd crash on 'getent group' (INTERNAL ERROR: Signal 11). Was missed in the last maintenence release. Jeremy. (cherry picked from commit db4a435d235bedf48d668a0f4418dd46f38044ed) --- diff --git a/source/nsswitch/winbindd_passdb.c b/source/nsswitch/winbindd_passdb.c index ad629283ee4..e22a20723dc 100644 --- a/source/nsswitch/winbindd_passdb.c +++ b/source/nsswitch/winbindd_passdb.c @@ -590,13 +590,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; }