From: Howard Chu Date: Wed, 3 Jan 2007 20:21:07 +0000 (+0000) Subject: Just return API errors to the frontend, don't attempt to send them. X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~271 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f206f3ddc0dea74003f00d68fb3e31026489d73b;p=openldap Just return API errors to the frontend, don't attempt to send them. --- 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;