From f206f3ddc0dea74003f00d68fb3e31026489d73b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 3 Jan 2007 20:21:07 +0000 Subject: [PATCH] Just return API errors to the frontend, don't attempt to send them. --- servers/slapd/overlays/retcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/overlays/retcode.c b/servers/slapd/overlays/retcode.c index 2bb277040a..8672c04d34 100644 --- a/servers/slapd/overlays/retcode.c +++ b/servers/slapd/overlays/retcode.c @@ -553,7 +553,7 @@ retcode_entry_response( Operation *op, SlapReply *rs, BackendInfo *bi, Entry *e } } - if ( rs->sr_err != LDAP_SUCCESS ) { + if ( rs->sr_err != LDAP_SUCCESS && !LDAP_API_ERROR( rs->sr_err )) { BackendDB db = *op->o_bd, *o_bd = op->o_bd; void *o_callback = op->o_callback; -- 2.39.5