diff options
author | Gerald Carter <jerry@samba.org> | 2004-09-20 19:19:59 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:52:43 -0500 |
commit | 848317b00401e5172a38ad684cf6cfc98834b2f2 (patch) | |
tree | f465269c956de83e326b96e77d174e878d7432d1 /source3/nsswitch/winbindd_group.c | |
parent | ec62d5a96896ed38894282cd7547d012f604c597 (diff) | |
download | samba-848317b00401e5172a38ad684cf6cfc98834b2f2.tar.gz samba-848317b00401e5172a38ad684cf6cfc98834b2f2.tar.xz samba-848317b00401e5172a38ad684cf6cfc98834b2f2.zip |
r2450: don't limit the number of groups returned by winbindd_getgroups()
(This used to be commit 4ba98cb469ad938bbc2e46cffaa48cc1c46b8e4e)
Diffstat (limited to 'source3/nsswitch/winbindd_group.c')
-rw-r--r-- | source3/nsswitch/winbindd_group.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/nsswitch/winbindd_group.c b/source3/nsswitch/winbindd_group.c index d1e8678c81b..a3b826278b5 100644 --- a/source3/nsswitch/winbindd_group.c +++ b/source3/nsswitch/winbindd_group.c @@ -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) |