From 848317b00401e5172a38ad684cf6cfc98834b2f2 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 20 Sep 2004 19:19:59 +0000 Subject: r2450: don't limit the number of groups returned by winbindd_getgroups() (This used to be commit 4ba98cb469ad938bbc2e46cffaa48cc1c46b8e4e) --- source3/nsswitch/winbindd_group.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source3/nsswitch') 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) -- cgit