mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
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:
parent
d2b024be4a
commit
1ea8de9fda
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue