s3:winbind: Do not use domain's private data to store the ADS_STRUCT
authorSamuel Cabrero <scabrero@samba.org>
Wed, 13 Apr 2022 09:31:45 +0000 (11:31 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 13 Apr 2022 12:59:30 +0000 (12:59 +0000)
commit3cb256439e9ceece26c2de82293c43486543e0cb
treeb64cde7b2c32d918ae605599ea6cb8ffcc9e828a
parent91395e660a2b1b69bf74ca0b77aee416e2ac1db3
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>
source3/winbindd/winbindd.h
source3/winbindd/winbindd_ads.c
source3/winbindd/winbindd_ndr.c
source3/winbindd/winbindd_pam.c