handle compare in frontend if backend couldn't handle it (and returned SLAP_CB_CONTINUE; e.g. if wrapped around an overlay...)

This commit is contained in:
Pierangelo Masarati 2005-01-30 22:06:38 +00:00
parent 8cc2aa9372
commit 58a06eae47

View 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