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
c50a931b
Commit
c50a931b
authored
Sep 04, 2008
by
Quanah Gibson-Mount
Browse files
ITS
#5680
parent
ca3c9f18
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
c50a931b
...
...
@@ -24,6 +24,7 @@ OpenLDAP 2.4.12 Engineering
Fixed slapo-constraint string termination (ITS#5609)
Fixed slapo-memberof internal operations DN (ITS#5622)
Fixed slapo-pcache attrset crash (ITS#5665)
Fixed slapo-pcache caching with invalid schema (ITS#5680)
Fixed slapo-rwm callback cleanup (ITS#5601)
Fixed slapo-rwm attr mapping and merging (ITS#5624)
Fixed slapo-rwm objectClass filtering (ITS#5647)
...
...
servers/slapd/overlays/pcache.c
View file @
c50a931b
...
...
@@ -1961,6 +1961,14 @@ pcache_op_cleanup( Operation *op, SlapReply *rs ) {
* limit, empty the chain and ignore the rest.
*/
if
(
!
si
->
over
)
{
/* check if the entry contains undefined
* attributes/objectClasses (ITS#5680) */
if
(
test_filter
(
op
,
rs
->
sr_entry
,
si
->
query
.
filter
)
!=
LDAP_COMPARE_TRUE
)
{
Debug
(
pcache_debug
,
"%s: query not cacheable because of schema issues in DN
\"
%s
\"\n
"
,
op
->
o_log_prefix
,
rs
->
sr_entry
->
e_name
.
bv_val
,
0
);
goto
over
;
}
if
(
si
->
count
<
si
->
max
)
{
si
->
count
++
;
e
=
entry_dup
(
rs
->
sr_entry
);
...
...
@@ -1969,6 +1977,7 @@ pcache_op_cleanup( Operation *op, SlapReply *rs ) {
si
->
tail
=
e
;
}
else
{
over:
;
si
->
over
=
1
;
si
->
count
=
0
;
for
(;
si
->
head
;
si
->
head
=
e
)
{
...
...
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