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) { if (nsaved > NGROUPS_MAX) {
/* MacOSX case. */ /* MacOSX case. */
uc->gids = NULL;
uc->ngroups = 0;
return NXT_OK; return NXT_OK;
} }