From 1ea8de9fda3d0fee2ceebf821f71e4640824abcd Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Thu, 30 Dec 2010 23:59:23 +0000 Subject: [PATCH] ITS#6758 Do not set sr_err=error before be_search. glue_op_search() set LDAP_UNWILLING_TO_PERFORM before be_search() as well as when there was no be_search. --- servers/slapd/backglue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/backglue.c b/servers/slapd/backglue.c index e9a337de64..8eca88e8e4 100644 --- a/servers/slapd/backglue.c +++ b/servers/slapd/backglue.c @@ -419,9 +419,10 @@ glue_op_search ( Operation *op, SlapReply *rs ) if ( op->o_bd == b0 ) return SLAP_CB_CONTINUE; - rs->sr_err = LDAP_UNWILLING_TO_PERFORM; if (op->o_bd && op->o_bd->be_search) { rs->sr_err = op->o_bd->be_search( op, rs ); + } else { + rs->sr_err = LDAP_UNWILLING_TO_PERFORM; } return rs->sr_err; -- 2.39.5