]> git.sur5r.net Git - openldap/commitdiff
ITS#7552 fix for templates with * / +
authorHoward Chu <hyc@openldap.org>
Mon, 25 Mar 2013 18:14:01 +0000 (11:14 -0700)
committerHoward Chu <hyc@openldap.org>
Mon, 25 Mar 2013 18:14:01 +0000 (11:14 -0700)
servers/slapd/overlays/pcache.c

index 08a0866d3b7decbe6b2c0af3bb37e8e76eda7fa0..1fa8d1ede429d10ce96fb3f1faf6c5f0ab386083 100644 (file)
@@ -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;
                }