don't limit the number of groups returned by winbindd_getgroups()
authorjerry <jerry@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Mon, 20 Sep 2004 19:19:59 +0000 (19:19 +0000)
committerjerry <jerry@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Mon, 20 Sep 2004 19:19:59 +0000 (19:19 +0000)
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@2450 0c0555d6-39d7-0310-84fc-f1cc0bd64818

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)