Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
8ff00e1d
Commit
8ff00e1d
authored
Sep 30, 2020
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Sep 30, 2020
Browse files
ITS#9295 Do not replace 'op'
parent
78aef769
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/syncrepl.c
View file @
8ff00e1d
...
...
@@ -1956,8 +1956,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;
...
...
@@ -1967,6 +1965,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;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment