diff options
author | Tim Potter <tpot@samba.org> | 2003-08-15 21:23:25 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-08-15 21:23:25 +0000 |
commit | 45b9fd9fb935f84a72730addeed6da316a18dfc5 (patch) | |
tree | 36162c2f5fb516156761e0d147381ca40df92043 /source3/libads | |
parent | c904740e95ce416c6ee16171dd8d94cfce43b7d6 (diff) | |
download | samba-45b9fd9fb935f84a72730addeed6da316a18dfc5.tar.gz samba-45b9fd9fb935f84a72730addeed6da316a18dfc5.tar.bz2 samba-45b9fd9fb935f84a72730addeed6da316a18dfc5.zip |
Don't print out error in ads_do_search_retry() when it suceeds.
(This used to be commit 617feab4223f5ba3cc5e090de5e63da72fce49df)
Diffstat (limited to 'source3/libads')
-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; } |