Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tero Saarni
OpenLDAP
Commits
ba37508f
Commit
ba37508f
authored
Oct 29, 2021
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Dec 09, 2021
Browse files
ITS#9647 Find correct sid in compare_csns() more of the time
parent
e8f1038d
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/syncrepl.c
View file @
ba37508f
...
...
@@ -1135,7 +1135,9 @@ compare_csns( struct sync_cookie *sc1, struct sync_cookie *sc2, int *which )
*
which
=
0
;
if
(
sc1
->
numcsns
<
sc2
->
numcsns
)
{
*
which
=
sc1
->
numcsns
;
for
(
i
=
0
;
i
<
sc1
->
numcsns
&&
sc1
->
sids
[
i
]
==
sc2
->
sids
[
i
]
;
i
++
)
/* Find the first one that's missing */
;
*
which
=
i
;
return
-
1
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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