s3: ldap: Ensure the ADS_STRUCT pointer doesn't get freed on error, we don't own...
commit520672e685c8fc742b63ae2157e645b0362c34a8
authorJeremy Allison <jra@samba.org>
Wed, 24 Jan 2018 22:09:43 +0000 (24 14:09 -0800)
committerKarolin Seeger <kseeger@samba.org>
Thu, 22 Mar 2018 21:03:25 +0000 (22 22:03 +0100)
treeab485f2a37556e77acec1a602daaeb1f66b80f4c
parent7a49112b5077381383d9d6c2b5356e6208dceaf0
s3: ldap: Ensure the ADS_STRUCT pointer doesn't get freed on error, we don't own it here.

Thanks to Isaac Boukris <iboukris@gmail.com> for finding the
issue and testing this fix.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jan 26 02:25:20 CET 2018 on sn-devel-144

(cherry picked from commit e7425bd5245ffea68b7e8f794c9b5f864d103769)
source3/libads/ldap_utils.c