From: Andrew Bartlett Date: Tue, 26 Sep 2023 20:42:55 +0000 (+1300) Subject: s3-winbind: Use token as parent for token->sids in check_info3_in_group() X-Git-Tag: tevent-0.16.0~427 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e8e35de7fe18495604744cbfcb922121c42a257;p=thirdparty%2Fsamba.git s3-winbind: Use token as parent for token->sids in check_info3_in_group() Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c index ece0eb3d544..c523425b247 100644 --- a/source3/winbindd/winbindd_pam.c +++ b/source3/winbindd/winbindd_pam.c @@ -469,7 +469,7 @@ static NTSTATUS check_info3_in_group(struct netr_SamInfo3 *info3, return NT_STATUS_NO_MEMORY; } - status = sid_array_from_info3(talloc_tos(), info3, + status = sid_array_from_info3(token, info3, &token->sids, &token->num_sids, true);