summaryrefslogtreecommitdiffstats
path: root/source/libads
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-08-15 21:23:25 +0000
committerTim Potter <tpot@samba.org>2003-08-15 21:23:25 +0000
commit617feab4223f5ba3cc5e090de5e63da72fce49df (patch)
treee2f44112fd019317115ddb3963acac94da173db2 /source/libads
parentf8a092e7b42cd157cf86240984be40badd0afd87 (diff)
downloadsamba-617feab4223f5ba3cc5e090de5e63da72fce49df.tar.gz
samba-617feab4223f5ba3cc5e090de5e63da72fce49df.tar.xz
samba-617feab4223f5ba3cc5e090de5e63da72fce49df.zip
Don't print out error in ads_do_search_retry() when it suceeds.
Diffstat (limited to 'source/libads')
-rw-r--r--source/libads/ldap_utils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/libads/ldap_utils.c b/source/libads/ldap_utils.c
index 68556002880..1fa9ebfc975 100644
--- a/source/libads/ldap_utils.c
+++ b/source/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;
}