]> git.sur5r.net Git - openldap/commitdiff
ITS#5232 report and fail on internal errors
authorHoward Chu <hyc@openldap.org>
Sun, 18 Nov 2007 21:49:04 +0000 (21:49 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 18 Nov 2007 21:49:04 +0000 (21:49 +0000)
servers/slapd/back-bdb/search.c

index 819ca26ea9cf8e88e50af29991ed6c9a3311db86..d2222d87c98154431182546ed5166a0462358279 100644 (file)
@@ -692,6 +692,10 @@ fetch_entry_retry:
                                || rs->sr_err == DB_LOCK_NOTGRANTED )
                        {
                                goto fetch_entry_retry;
+                       } else if ( rs->sr_err == LDAP_OTHER ) {
+                               rs->sr_text = "internal error";
+                               send_ldap_result( op, rs );
+                               goto done;
                        }
 
                        if ( ei && rs->sr_err == LDAP_SUCCESS ) {