r2450: don't limit the number of groups returned by winbindd_getgroups()
authorGerald Carter <jerry@samba.org>
Mon, 20 Sep 2004 19:19:59 +0000 (19:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:43 +0000 (10:52 -0500)
source/nsswitch/winbindd_group.c

index d1e8678c81bbc847c2d25120e1f4472b4aef1a23..a3b826278b56a3113878d502f3f9d168c0535525 100644 (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)