summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/smbd/sec_ctx_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/smbd/sec_ctx_utils.c b/testsuite/smbd/sec_ctx_utils.c
index e72292b9864..3834cfd4a16 100644
--- a/testsuite/smbd/sec_ctx_utils.c
+++ b/testsuite/smbd/sec_ctx_utils.c
@@ -30,7 +30,7 @@ void get_random_grouplist(int *ngroups, gid_t **groups)
{
int i;
- *ngroups = random() % groups_max();
+ *ngroups = random() % setgroups_max();
*groups = malloc(*ngroups * sizeof(gid_t));
if (!groups) {