]> git.sur5r.net Git - openldap/commitdiff
handle compare in frontend if backend couldn't handle it (and returned SLAP_CB_CONTIN...
authorPierangelo Masarati <ando@openldap.org>
Sun, 30 Jan 2005 22:06:38 +0000 (22:06 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 30 Jan 2005 22:06:38 +0000 (22:06 +0000)
servers/slapd/compare.c

index 9c41d57d411f96c30c813d1946e1be621c464dd7..3541118d033c86cd8da46b0b8ddfd0d0267a2db2 100644 (file)
@@ -326,10 +326,14 @@ fe_op_compare( Operation *op, SlapReply *rs )
                }
 
        } else if ( op->o_bd->be_compare ) {
-               op->o_bd->be_compare( op, rs );
+               rs->sr_err = op->o_bd->be_compare( op, rs );
 
 #endif /* ! SLAP_COMPARE_IN_FRONTEND */
        } else {
+               rs->sr_err = SLAP_CB_CONTINUE;
+       }
+
+       if ( rs->sr_err == SLAP_CB_CONTINUE ) {
                /* do our best to compare that AVA
                 * 
                 * NOTE: this code is used only