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
Joe Martin
OpenLDAP
Commits
e24c3367
Commit
e24c3367
authored
Nov 24, 2009
by
Quanah Gibson-Mount
Browse files
ITS#6400
parent
c1957b00
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
e24c3367
...
...
@@ -32,6 +32,7 @@ OpenLDAP 2.4.20 Engineering
Fixed slapd-bdb/hdb entry cache (ITS#6360)
Fixed slapd-ldap leak (ITS#6326)
Fixed slapd-relay bind segfault (ITS#6337)
Fixed slapo-accesslog ensure CSNs are normalized (ITS#6400)
Fixed slapo-memberof operational attr updates (ITS#6329)
Fixed slapo-pcache entry dupe (ITS#6310)
Fixed slapo-syncprov checkpoint conversion (ITS#6370)
...
...
servers/slapd/overlays/accesslog.c
View file @
e24c3367
...
...
@@ -580,11 +580,12 @@ log_old_lookup( Operation *op, SlapReply *rs )
a
=
attr_find
(
rs
->
sr_entry
->
e_attrs
,
slap_schema
.
si_ad_entryCSN
);
if
(
a
)
{
ber_len_t
len
=
a
->
a_vals
[
0
].
bv_len
;
if
(
len
>
pd
->
csn
.
bv_len
)
len
=
pd
->
csn
.
bv_len
;
if
(
memcmp
(
a
->
a_vals
[
0
].
bv_val
,
pd
->
csn
.
bv_val
,
len
)
>
0
)
{
AC_MEMCPY
(
pd
->
csn
.
bv_val
,
a
->
a_vals
[
0
].
bv_val
,
len
);
ber_len_t
len
=
a
->
a_nvals
[
0
].
bv_len
;
/* Paranoid len check, normalized CSNs are always the same length */
if
(
len
>
LDAP_PVT_CSNSTR_BUFSIZE
)
len
=
LDAP_PVT_CSNSTR_BUFSIZE
;
if
(
memcmp
(
a
->
a_nvals
[
0
].
bv_val
,
pd
->
csn
.
bv_val
,
len
)
>
0
)
{
AC_MEMCPY
(
pd
->
csn
.
bv_val
,
a
->
a_nvals
[
0
].
bv_val
,
len
);
pd
->
csn
.
bv_len
=
len
;
}
}
...
...
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