summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-09-20 19:19:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:43 -0500
commit848317b00401e5172a38ad684cf6cfc98834b2f2 (patch)
treef465269c956de83e326b96e77d174e878d7432d1 /source3
parentec62d5a96896ed38894282cd7547d012f604c597 (diff)
downloadsamba-848317b00401e5172a38ad684cf6cfc98834b2f2.tar.gz
samba-848317b00401e5172a38ad684cf6cfc98834b2f2.tar.bz2
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')
-rw-r--r--source3/nsswitch/winbindd_group.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/nsswitch/winbindd_group.c b/source3/nsswitch/winbindd_group.c
index d1e8678c81..a3b826278b 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)