mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-11 23:03:21 -05:00
guard against simultaneous REP_ENTRY_MUSTRELEASE and REP_ENTRY_MODIFIABLE (ITS#6423)
This commit is contained in:
parent
78ece29ae1
commit
173873172c
1 changed files with 7 additions and 0 deletions
|
|
@ -1505,6 +1505,13 @@ rwm_send_entry( Operation *op, SlapReply *rs )
|
|||
(void)rwm_attrs( op, rs, &e->e_attrs, 1 );
|
||||
|
||||
if ( rs->sr_flags & REP_ENTRY_MUSTRELEASE ) {
|
||||
/* ITS#6423: REP_ENTRY_MUSTRELEASE incompatible
|
||||
* with REP_ENTRY_MODIFIABLE */
|
||||
if ( rs->sr_entry == e ) {
|
||||
rc = 1;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
overlay_entry_release_ov( op, rs->sr_entry, 0, on );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue