From: Hallvard Furuseth Date: Thu, 30 Dec 2010 23:59:23 +0000 (+0000) Subject: ITS#6758 Do not set sr_err=error before be_search. X-Git-Tag: MIGRATION_CVS2GIT~310 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1ea8de9fda3d0fee2ceebf821f71e4640824abcd;p=openldap 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. --- 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;