]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-winbind: Use token as parent for token->sids in check_info3_in_group()
authorAndrew Bartlett <abartlet@samba.org>
Tue, 26 Sep 2023 20:42:55 +0000 (09:42 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 26 Sep 2023 23:45:36 +0000 (23:45 +0000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source3/winbindd/winbindd_pam.c

index ece0eb3d5445bf377a9fdafbbbff323a33eea3bf..c523425b247d43245fd4f179de066f082787e7da 100644 (file)
@@ -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);