]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/overlays/pcache.c
Fix prev commit
[openldap] / servers / slapd / overlays / pcache.c
index 141cc20a7a2358db89aeb2b2a0ff9eb773b747fa..5f3ce24004bbc6e0748736b8f7b4814f60291cb7 100644 (file)
@@ -1995,7 +1995,7 @@ pcache_op_cleanup( Operation *op, SlapReply *rs ) {
 
                        /* check for malformed entries: attrs with no values */
                        {
-                               Attribute *a = e->e_attrs;
+                               Attribute *a = rs->sr_entry->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",