From: Howard Chu Date: Sun, 18 Nov 2007 21:49:04 +0000 (+0000) Subject: ITS#5232 report and fail on internal errors X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~422 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e6568f61b54b418388b08100ded5321d372a789b;p=openldap ITS#5232 report and fail on internal errors --- diff --git a/servers/slapd/back-bdb/search.c b/servers/slapd/back-bdb/search.c index 819ca26ea9..d2222d87c9 100644 --- a/servers/slapd/back-bdb/search.c +++ b/servers/slapd/back-bdb/search.c @@ -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 ) {