Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
78aef769
Commit
78aef769
authored
Sep 30, 2020
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Sep 30, 2020
Browse files
ITS
#9359
Do not create an empty add
parent
2b5f1661
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/syncrepl.c
View file @
78aef769
...
...
@@ -2011,7 +2011,10 @@ static Modifications *mods_dup( Operation *op, Modifications *modlist, int match
modlist
->
sml_desc
==
slap_schema
.
si_ad_modifyTimestamp
||
modlist
->
sml_desc
==
slap_schema
.
si_ad_entryCSN
)
continue
;
if
(
modlist
->
sml_op
==
LDAP_MOD_REPLACE
)
{
if
(
modlist
->
sml_values
==
NULL
&&
modlist
->
sml_op
==
LDAP_MOD_REPLACE
)
{
/* ITS#9359 This adds no values, just change to a delete op */
modlist
->
sml_op
=
LDAP_MOD_DELETE
;
}
else
if
(
modlist
->
sml_op
==
LDAP_MOD_REPLACE
)
{
mod
=
op
->
o_tmpalloc
(
sizeof
(
Modifications
),
op
->
o_tmpmemctx
);
mod
->
sml_desc
=
modlist
->
sml_desc
;
mod
->
sml_values
=
NULL
;
...
...
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