mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
ensure that the group table isn't overflowed.
This commit is contained in:
@@ -339,7 +339,7 @@ static void plain_group_list(void *pool, void *additional, char ***groupname, un
|
||||
}
|
||||
|
||||
p = htable_first(&hash, &iter);
|
||||
while (p != NULL) {
|
||||
while (p != NULL && (*groupname_size) < MAX_GROUPS) {
|
||||
(*groupname)[(*groupname_size)] = talloc_strdup(*groupname, p);
|
||||
p = htable_next(&hash, &iter);
|
||||
(*groupname_size)++;
|
||||
|
||||
Reference in New Issue
Block a user