Author: tridge
Date: 2005-09-30 03:42:07 +0000 (Fri, 30 Sep 2005)
New Revision: 10641

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

Log:
fixed the error handling on search errors in the ildap backend


Modified:
   branches/SAMBA_4_0/source/lib/ldb/ldb_ildap/ldb_ildap.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_ildap/ldb_ildap.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/ldb_ildap/ldb_ildap.c     2005-09-30 
02:07:34 UTC (rev 10640)
+++ branches/SAMBA_4_0/source/lib/ldb/ldb_ildap/ldb_ildap.c     2005-09-30 
03:42:07 UTC (rev 10641)
@@ -166,6 +166,7 @@
                                     0, &ldapres);
        talloc_free(search_base);
        if (!NT_STATUS_IS_OK(ildb->last_rc)) {
+               ldb_set_errstring(module, talloc_strdup(module, 
ldap_errstr(ildb->ldap, ildb->last_rc)));
                return -1;
        }
 

Reply via email to