Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tero Saarni
OpenLDAP
Commits
379dd48e
Commit
379dd48e
authored
Sep 03, 2008
by
Quanah Gibson-Mount
Browse files
ITS#5675
parent
808e8f25
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
379dd48e
...
...
@@ -11,6 +11,7 @@ OpenLDAP 2.4.12 Engineering
Fixed slapd overlay control registration (ITS#5649)
Fixed slapd socket closing on Windows (ITS#5606)
Fixed slapd sortvals comparison (ITS#5578)
Fixed slapd syncrepl contextCSN detection (ITS#5675)
Fixed slapd syncrepl error logging (ITS#5618)
Fixed slapd-bdb entry return if attr not present (ITS#5650)
Fixed slapd-ldap,slapd-meta invalid filter behavior (ITS#5614)
...
...
servers/slapd/syncrepl.c
View file @
379dd48e
...
...
@@ -473,7 +473,7 @@ check_syncprov(
for
(
i
=
0
;
i
<
num
;
i
++
)
{
if
(
ber_bvcmp
(
&
a
.
a_nvals
[
i
],
&
si
->
si_cookieState
->
cs_vals
[
i
]
))
{
changed
=
1
;
changed
=
1
;
break
;
}
}
...
...
@@ -2770,8 +2770,13 @@ syncrepl_updateCookie(
if
(
memcmp
(
syncCookie
->
ctxcsn
[
i
].
bv_val
,
si
->
si_cookieState
->
cs_vals
[
j
].
bv_val
,
len
)
>
0
)
{
mod
.
sml_values
[
j
]
=
syncCookie
->
ctxcsn
[
i
];
if
(
BER_BVISNULL
(
&
first
))
if
(
BER_BVISNULL
(
&
first
)
)
{
first
=
syncCookie
->
ctxcsn
[
i
];
}
else
if
(
memcmp
(
syncCookie
->
ctxcsn
[
i
].
bv_val
,
first
.
bv_val
,
first
.
bv_len
)
>
0
)
{
first
=
syncCookie
->
ctxcsn
[
i
];
}
}
break
;
}
...
...
@@ -2781,8 +2786,12 @@ syncrepl_updateCookie(
(
mod
.
sml_numvals
+
2
)
*
sizeof
(
struct
berval
),
op
->
o_tmpmemctx
);
mod
.
sml_values
[
mod
.
sml_numvals
++
]
=
syncCookie
->
ctxcsn
[
i
];
BER_BVZERO
(
&
mod
.
sml_values
[
mod
.
sml_numvals
]
);
if
(
BER_BVISNULL
(
&
first
))
if
(
BER_BVISNULL
(
&
first
)
)
{
first
=
syncCookie
->
ctxcsn
[
i
];
}
else
if
(
memcmp
(
syncCookie
->
ctxcsn
[
i
].
bv_val
,
first
.
bv_val
,
first
.
bv_len
)
>
0
)
{
first
=
syncCookie
->
ctxcsn
[
i
];
}
}
}
/* Should never happen, ITS#5065 */
...
...
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