]> git.sur5r.net Git - openldap/commitdiff
Just return API errors to the frontend, don't attempt to send them.
authorHoward Chu <hyc@openldap.org>
Wed, 3 Jan 2007 20:21:07 +0000 (20:21 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 3 Jan 2007 20:21:07 +0000 (20:21 +0000)
servers/slapd/overlays/retcode.c

index 2bb277040a401ea953291c110f3995a177b3324b..8672c04d34951ab8ff1440989ee37879dcddd229 100644 (file)
@@ -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;