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.
This commit is contained in:
Hallvard Furuseth 2010-12-30 23:59:23 +00:00
parent d2b024be4a
commit 1ea8de9fda

View file

@ -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;