From f84a67ef34259513678e44d330aa39e74e01b165 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 14 Dec 2007 20:04:40 +0000 Subject: [PATCH] Don't test filter before saving, need the copy for local lookup --- servers/slapd/overlays/translucent.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/servers/slapd/overlays/translucent.c b/servers/slapd/overlays/translucent.c index 081b97753a..edd24bb7b7 100644 --- a/servers/slapd/overlays/translucent.c +++ b/servers/slapd/overlays/translucent.c @@ -783,16 +783,13 @@ static int translucent_search_cb(Operation *op, SlapReply *rs) { re->e_attrs = as; } } + /* If both filters, save entry for later */ if ( tc->step == (USE_LIST|RMT_SIDE) ) { - rc = test_filter( op, re, tc->orig ); - if ( rc == LDAP_COMPARE_TRUE ) { - tavl_insert( &tc->list, re, entry_dn_cmp, avl_dup_error ); - } else { - entry_free( re ); - } + tavl_insert( &tc->list, re, entry_dn_cmp, avl_dup_error ); rs->sr_entry = NULL; rc = 0; } else { + /* send it now */ rs->sr_entry = re; rs->sr_flags |= REP_ENTRY_MUSTBEFREED; rc = SLAP_CB_CONTINUE; -- 2.39.5