This also fixes the pointer assigned to the gr_mem element of struct group. Fixes a bug introduced by 47fd7fa6. Fixes #21935. (cherry picked from commit 1e65eb8f)
mentioned in commit 5f78618a
mentioned in commit 477e5328