From 58a06eae474596770f3726190cb87cbdecab9cfb Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sun, 30 Jan 2005 22:06:38 +0000 Subject: [PATCH] handle compare in frontend if backend couldn't handle it (and returned SLAP_CB_CONTINUE; e.g. if wrapped around an overlay...) --- servers/slapd/compare.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5