From cb97ae7f5ec73d2c1ceb9919a1fd9d552d6a46ba Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 23 Jan 2018 16:59:46 -0800 Subject: [PATCH] s3: ldap: Ensure ads_do_search_retry_internal() doesn't destroy a passed in ADS_STRUCT *ads struct. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13244 Signed-off-by: Jeremy Allison --- source3/libads/ldap_utils.c | 1 - 1 file changed, 1 deletion(-) diff --git a/source3/libads/ldap_utils.c b/source3/libads/ldap_utils.c index a4adbc09524..71b4fac735c 100644 --- a/source3/libads/ldap_utils.c +++ b/source3/libads/ldap_utils.c @@ -107,7 +107,6 @@ static ADS_STATUS ads_do_search_retry_internal(ADS_STRUCT *ads, const char *bind if (!ADS_ERR_OK(status)) { DEBUG(1,("ads_search_retry: failed to reconnect (%s)\n", ads_errstr(status))); - ads_destroy(&ads); SAFE_FREE(bp); return status; } -- 2.16.0.rc1.238.g530d649a79-goog