From: Volker Lendecke Date: Wed, 4 Oct 2017 13:04:01 +0000 (+0200) Subject: smbd: Fix the memory hierarchy in the unix token X-Git-Tag: tevent-0.9.34~75 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e62253a52a10be8719369325a5b1e146f8405c7c;p=thirdparty%2Fsamba.git smbd: Fix the memory hierarchy in the unix token "groups" should hang off the token itself, not its parent Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 1021f2a6fef..8e7fa914748 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -639,7 +639,8 @@ NTSTATUS create_local_token(TALLOC_CTX *mem_ctx, sid_string_dbg(&t->sids[i]))); continue; } - if (!add_gid_to_array_unique(session_info, ids[i].id, + if (!add_gid_to_array_unique(session_info->unix_token, + ids[i].id, &session_info->unix_token->groups, &session_info->unix_token->ngroups)) { return NT_STATUS_NO_MEMORY;