Initializing user_cred gids and ngroups for MacOS.

This commit is contained in:
Max Romanov 2018-09-19 18:53:16 +03:00
parent 353db6f361
commit 5ef1352fae

View file

@ -486,6 +486,10 @@ nxt_user_groups_get(nxt_task_t *task, nxt_user_cred_t *uc)
if (nsaved > NGROUPS_MAX) {
/* MacOSX case. */
uc->gids = NULL;
uc->ngroups = 0;
return NXT_OK;
}