mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#7080 Find config entry before processing pre-read on delete
This commit is contained in:
parent
d8331e1b81
commit
2bf59ff63a
1 changed files with 1 additions and 1 deletions
|
|
@ -6599,6 +6599,7 @@ config_back_delete( Operation *op, SlapReply *rs )
|
||||||
cfb = (CfBackInfo *)op->o_bd->be_private;
|
cfb = (CfBackInfo *)op->o_bd->be_private;
|
||||||
|
|
||||||
/* If we have a backend, it will handle the control */
|
/* 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 ( ce && !cfb->cb_use_ldif && op->o_preread ) {
|
||||||
if ( preread_ctrl == NULL ) {
|
if ( preread_ctrl == NULL ) {
|
||||||
preread_ctrl = &ctrls[num_ctrls++];
|
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 ( !ce ) {
|
||||||
if ( last )
|
if ( last )
|
||||||
rs->sr_matched = last->ce_entry->e_name.bv_val;
|
rs->sr_matched = last->ce_entry->e_name.bv_val;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue