diff options
| -rw-r--r-- | source3/libads/ldap_utils.c | 5 | 
1 files changed, 4 insertions, 1 deletions
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;  }  | 
