s3:winbind: Do not use domain's private data to store the ADS_STRUCT
commit12e6a16911dee92e20290bb4dec7959cb9de30f6
authorSamuel Cabrero <scabrero@samba.org>
Wed, 13 Apr 2022 09:31:45 +0000 (13 11:31 +0200)
committerJule Anger <janger@samba.org>
Fri, 15 Apr 2022 13:46:10 +0000 (15 13:46 +0000)
treee7241fd37aafea1cd3fbbf9330e1945da5276ca2
parentbe6712bd6151548168bd77a670c7576383c3c7f6
s3:winbind: Do not use domain's private data to store the ADS_STRUCT

The ADS_STRUCT is not allocated using talloc and there are many places
casting this pointer directly so use a typed pointer.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15046

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 3cb256439e9ceece26c2de82293c43486543e0cb)
source3/winbindd/winbindd.h
source3/winbindd/winbindd_ads.c
source3/winbindd/winbindd_ndr.c
source3/winbindd/winbindd_pam.c