Skip to content
Snippets Groups Projects
Commit f3cca3d2 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#5927

parent 4bee4dd5
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ OpenLDAP 2.4.15 Engineering
Fixed slapd corrupt contextCSN (ITS#5947)
Fixed slapd syncrepl order to match on add/delete (ITS#5954)
Fixed slapd-bdb/hdb behavior with unallocatable shm (ITS#5956)
Fixed slapo-pcache caching invalid entries (ITS#5927)
Fixed slapo-rwm objectClass preservation (ITS#5760)
Build Environment
Fixed tester library linking for windows (ITS#5740)
......
......@@ -1993,6 +1993,19 @@ pcache_op_cleanup( Operation *op, SlapReply *rs ) {
goto over;
}
/* check for malformed entries: attrs with no values */
{
Attribute *a = e->e_attrs;
for (; a; a=a->a_next) {
if ( !a->a_numvals ) {
Debug( pcache_debug, "%s: query not cacheable because of attrs without values in DN \"%s\" (%s)\n",
op->o_log_prefix, rs->sr_entry->e_name.bv_val,
a->a_desc->ad_cname.bv_val );
goto over;
}
}
}
if ( si->count < si->max ) {
si->count++;
e = entry_dup( rs->sr_entry );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment