svn commit: samba r23861 - in branches: SAMBA_3_2/source/libads SAMBA_3_2_0/source/libads

gd at samba.org gd at samba.org
Fri Jul 13 09:53:55 GMT 2007


Author: gd
Date: 2007-07-13 09:53:55 +0000 (Fri, 13 Jul 2007)
New Revision: 23861

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23861

Log:
Fix return code in ads_find_samaccount().

Guenther

Modified:
   branches/SAMBA_3_2/source/libads/ldap.c
   branches/SAMBA_3_2_0/source/libads/ldap.c


Changeset:
Modified: branches/SAMBA_3_2/source/libads/ldap.c
===================================================================
--- branches/SAMBA_3_2/source/libads/ldap.c	2007-07-13 08:38:51 UTC (rev 23860)
+++ branches/SAMBA_3_2/source/libads/ldap.c	2007-07-13 09:53:55 UTC (rev 23861)
@@ -3310,7 +3310,7 @@
 	}
 
 	if (ads_count_replies(ads, res) != 1) {
-		printf("no result\n");
+		status = ADS_ERROR(LDAP_NO_RESULTS_RETURNED);
 		goto out;
 	}
 

Modified: branches/SAMBA_3_2_0/source/libads/ldap.c
===================================================================
--- branches/SAMBA_3_2_0/source/libads/ldap.c	2007-07-13 08:38:51 UTC (rev 23860)
+++ branches/SAMBA_3_2_0/source/libads/ldap.c	2007-07-13 09:53:55 UTC (rev 23861)
@@ -3310,7 +3310,7 @@
 	}
 
 	if (ads_count_replies(ads, res) != 1) {
-		printf("no result\n");
+		status = ADS_ERROR(LDAP_NO_RESULTS_RETURNED);
 		goto out;
 	}
 



More information about the samba-cvs mailing list