From 45b9fd9fb935f84a72730addeed6da316a18dfc5 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 15 Aug 2003 21:23:25 +0000 Subject: Don't print out error in ads_do_search_retry() when it suceeds. (This used to be commit 617feab4223f5ba3cc5e090de5e63da72fce49df) --- source3/libads/ldap_utils.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/libads/ldap_utils.c b/source3/libads/ldap_utils.c index 6855600288..1fa9ebfc97 100644 --- a/source3/libads/ldap_utils.c +++ b/source3/libads/ldap_utils.c @@ -73,7 +73,10 @@ ADS_STATUS ads_do_search_retry(ADS_STRUCT *ads, const char *bind_path, int scope } free(bp); - DEBUG(1,("ads reopen failed after error %s\n", ads_errstr(status))); + if (!ADS_ERR_OK(status)) + DEBUG(1,("ads reopen failed after error %s\n", + ads_errstr(status))); + return status; } -- cgit