From 3fe88a3cefee1da9493e9ebe493766f96a29441a Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 25 Mar 2013 11:14:01 -0700 Subject: [PATCH] ITS#7552 fix for templates with * / + --- servers/slapd/overlays/pcache.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index 08a0866d3b..1fa8d1ede4 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -2438,6 +2438,7 @@ pcache_response( if ( si->swap_saved_attrs ) { rs->sr_attrs = si->save_attrs; + rs->sr_attr_flags = slap_attr_flags( si->save_attrs ); op->ors_attrs = si->save_attrs; } @@ -3210,6 +3211,10 @@ get_attr_set( int found = 1; if ( count > qm->attr_sets[i].count ) { + if ( qm->attr_sets[i].count && + bvmatch( &qm->attr_sets[i].attrs[0].an_name, slap_bv_all_user_attrs )) { + break; + } continue; } -- 2.39.5