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:
parent
ec62d5a968
commit
848317b004
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user