From: Howard Chu Date: Fri, 14 Dec 2007 20:04:40 +0000 (+0000) Subject: Don't test filter before saving, need the copy for local lookup X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~313 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f84a67ef34259513678e44d330aa39e74e01b165;p=openldap Don't test filter before saving, need the copy for local lookup --- 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;