From: Pierangelo Masarati Date: Sun, 30 Jan 2005 22:06:38 +0000 (+0000) Subject: handle compare in frontend if backend couldn't handle it (and returned SLAP_CB_CONTIN... X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~211 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=58a06eae474596770f3726190cb87cbdecab9cfb;p=openldap handle compare in frontend if backend couldn't handle it (and returned SLAP_CB_CONTINUE; e.g. if wrapped around an overlay...) --- diff --git a/servers/slapd/compare.c b/servers/slapd/compare.c index 9c41d57d41..3541118d03 100644 --- a/servers/slapd/compare.c +++ b/servers/slapd/compare.c @@ -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