s3:winbind: Refactor winbindd_dual_pam_auth_cached(), use temporary memory context
commit7a3888113a62f3263cb887c75fc748d972a709e5
authorSamuel Cabrero <scabrero@samba.org>
Thu, 10 Jun 2021 14:34:56 +0000 (10 16:34 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 8 Apr 2022 20:13:37 +0000 (8 20:13 +0000)
tree45e9a7a096e22b45741697751458b521b2ec5fa4
parentcca932d329cec65173a3647548c30c709df23253
s3:winbind: Refactor winbindd_dual_pam_auth_cached(), use temporary memory context

This function allocates a lot of intermedite variables, use a temporary
memory context.

The out variable info3 is assigned using talloc_steal() because the
local my_info3 is used below.

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_pam.c