mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#9295 Do not replace 'op'
This commit is contained in:
parent
20024d5ba8
commit
efc23cddc3
@ -2287,8 +2287,6 @@ syncrepl_accesslog_mods(
|
||||
|
||||
if ( !mod || ad != mod->sml_desc || op != mod->sml_op ) {
|
||||
mod = (Modifications *) ch_malloc( sizeof( Modifications ) );
|
||||
if ( op == LDAP_MOD_ADD && is_at_single_value( ad->ad_type ))
|
||||
op = LDAP_MOD_REPLACE;
|
||||
mod->sml_flags = 0;
|
||||
mod->sml_op = op;
|
||||
mod->sml_next = NULL;
|
||||
@ -2298,6 +2296,10 @@ syncrepl_accesslog_mods(
|
||||
mod->sml_nvalues = NULL;
|
||||
mod->sml_numvals = 0;
|
||||
|
||||
/* Keep 'op' to reflect what we read out from accesslog */
|
||||
if ( op == LDAP_MOD_ADD && is_at_single_value( ad->ad_type ))
|
||||
mod->sml_op = LDAP_MOD_REPLACE;
|
||||
|
||||
*modtail = mod;
|
||||
modtail = &mod->sml_next;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user