From e6568f61b54b418388b08100ded5321d372a789b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 18 Nov 2007 21:49:04 +0000 Subject: [PATCH] ITS#5232 report and fail on internal errors --- servers/slapd/back-bdb/search.c | 4 ++++ 1 file changed, 4 insertions(+) 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 ) { -- 2.39.5