1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r2450: don't limit the number of groups returned by winbindd_getgroups()

(This used to be commit 4ba98cb469)
This commit is contained in:
Gerald Carter 2004-09-20 19:19:59 +00:00 committed by Gerald (Jerry) Carter
parent ec62d5a968
commit 848317b004

View File

@ -923,14 +923,11 @@ static void add_gid_to_array_unique(gid_t gid, gid_t **gids, int *num)
{
int i;
if ((*num) >= groups_max())
return;
for (i=0; i<*num; i++) {
if ((*gids)[i] == gid)
return;
}
*gids = Realloc(*gids, (*num+1) * sizeof(gid_t));
if (*gids == NULL)