mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-19 14:30:57 +08:00
ITS#7080 Find config entry before processing pre-read on delete
This commit is contained in:
parent
d8331e1b81
commit
2bf59ff63a
@ -6599,6 +6599,7 @@ config_back_delete( Operation *op, SlapReply *rs )
|
||||
cfb = (CfBackInfo *)op->o_bd->be_private;
|
||||
|
||||
/* If we have a backend, it will handle the control */
|
||||
ce = config_find_base( cfb->cb_root, &op->o_req_ndn, &last );
|
||||
if ( ce && !cfb->cb_use_ldif && op->o_preread ) {
|
||||
if ( preread_ctrl == NULL ) {
|
||||
preread_ctrl = &ctrls[num_ctrls++];
|
||||
@ -6618,7 +6619,6 @@ config_back_delete( Operation *op, SlapReply *rs )
|
||||
}
|
||||
}
|
||||
|
||||
ce = config_find_base( cfb->cb_root, &op->o_req_ndn, &last );
|
||||
if ( !ce ) {
|
||||
if ( last )
|
||||
rs->sr_matched = last->ce_entry->e_name.bv_val;
|
||||
|
Loading…
x
Reference in New Issue
Block a user