s3: ldap: Ensure the ADS_STRUCT pointer doesn't get freed on error, we don't own...
authorJeremy Allison <jra@samba.org>
Wed, 24 Jan 2018 22:09:43 +0000 (14:09 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 26 Jan 2018 01:25:20 +0000 (02:25 +0100)
commite7425bd5245ffea68b7e8f794c9b5f864d103769
tree0002a75f9501f7ae2d8e85b195bebf81464417fb
parent849169a7b6ed0beb78bbddf25537521c1ed2f8e1
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
source3/libads/ldap_utils.c