groups = data->idd_groups;
/* Allocate array of size maxgroups instead of handling two
* consecutive and potentially racy getgrouplist() calls. */
groups_tmp = malloc(maxgroups * sizeof(gid_t));
if (groups_tmp == NULL) {
groups = data->idd_groups;
/* Allocate array of size maxgroups instead of handling two
* consecutive and potentially racy getgrouplist() calls. */
groups_tmp = malloc(maxgroups * sizeof(gid_t));
if (groups_tmp == NULL) {