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
4156d8a5
Commit
4156d8a5
authored
Sep 17, 2020
by
Howard Chu
Committed by
Quanah Gibson-Mount
Sep 17, 2020
Browse files
ITS#9352 syncrepl: fix syncrepl_op_modify on entry with no entryCSN
parent
fcbe7050
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/syncrepl.c
View file @
4156d8a5
...
...
@@ -2242,10 +2242,15 @@ syncrepl_op_modify( Operation *op, SlapReply *rs )
Attribute
*
a
;
const
char
*
text
;
a
=
attr_find
(
e
->
e_attrs
,
slap_schema
.
si_ad_entryCSN
);
value_match
(
&
match
,
slap_schema
.
si_ad_entryCSN
,
slap_schema
.
si_ad_entryCSN
->
ad_type
->
sat_ordering
,
SLAP_MR_VALUE_OF_ATTRIBUTE_SYNTAX
,
&
mod
->
sml_nvalues
[
0
],
&
a
->
a_nvals
[
0
],
&
text
);
if
(
a
)
{
value_match
(
&
match
,
slap_schema
.
si_ad_entryCSN
,
slap_schema
.
si_ad_entryCSN
->
ad_type
->
sat_ordering
,
SLAP_MR_VALUE_OF_ATTRIBUTE_SYNTAX
,
&
mod
->
sml_nvalues
[
0
],
&
a
->
a_nvals
[
0
],
&
text
);
}
else
{
/* no entryCSN? shouldn't happen. assume mod is newer. */
match
=
1
;
}
overlay_entry_release_ov
(
op
,
e
,
0
,
on
);
}
/* equal? Should never happen */
...
...
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