From ed0ffc5cef4056121f707a1526688ff323445556 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 13 Jul 2007 09:53:55 +0000 Subject: r23861: Fix return code in ads_find_samaccount(). Guenther (This used to be commit 684fcf39dcc08bcf571272549222fdeb11d2725f) --- source3/libads/ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 32cc82c925..84ceba2406 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -3310,7 +3310,7 @@ ADS_STATUS ads_find_samaccount(ADS_STRUCT *ads, } if (ads_count_replies(ads, res) != 1) { - printf("no result\n"); + status = ADS_ERROR(LDAP_NO_RESULTS_RETURNED); goto out; } -- cgit