From: Günther Deschner Date: Fri, 13 Jul 2007 09:53:55 +0000 (+0000) Subject: r23861: Fix return code in ads_find_samaccount(). X-Git-Tag: samba-4.0.0alpha6~801^2~5368 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed0ffc5cef4056121f707a1526688ff323445556;p=thirdparty%2Fsamba.git r23861: Fix return code in ads_find_samaccount(). Guenther (This used to be commit 684fcf39dcc08bcf571272549222fdeb11d2725f) --- diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 32cc82c9252..84ceba2406a 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; }