]> git.sur5r.net Git - openldap/commitdiff
Delete leftover test_filter comment.
authorJulio Sánchez Fernández <jsanchez@openldap.org>
Fri, 9 Jul 1999 13:41:12 +0000 (13:41 +0000)
committerJulio Sánchez Fernández <jsanchez@openldap.org>
Fri, 9 Jul 1999 13:41:12 +0000 (13:41 +0000)
Adapt to work with the f_sub definition change reversal.

servers/slapd/back-ldbm/filterindex.c

index bcc1b0d0e0c49ccbb409956cbbe1879fb4a2cd20..c22a8ef86007766b1a6dacc8b21559abd58dc8ca 100644 (file)
@@ -17,13 +17,6 @@ static ID_BLOCK      *list_candidates( Backend *be, Filter *flist, int ftype );
 static ID_BLOCK        *substring_candidates( Backend *be, Filter *f );
 static ID_BLOCK        *extensible_candidates( Backend *be, Mra *mra );
 
-/*
- * test_filter - test a filter against a single entry.
- * returns     0       filter matched
- *             -1      filter did not match
- *             >0      an ldap error code
- */
-
 ID_BLOCK *
 index_candidates(
     Backend            *be,
@@ -302,12 +295,16 @@ substring_candidates(
        int     i;
        AttributeType   *at;
        ID_BLOCK        *idl;
+       struct berval   *substrings;
 
        Debug( LDAP_DEBUG_TRACE, "=> substring_candidates\n", 0, 0, 0 );
 
        at = at_find( f->f_sub_type );
+       substrings = make_substrs_berval( &f->f_sub );
        idl = index_candidates( be, at, global_mr_approx,
-                               &f->f_sub_value );
+                               substrings );
+
+       ber_bvfree( substrings );
 
        Debug( LDAP_DEBUG_TRACE, "<= substring_candidates %ld\n",
            idl ? ID_BLOCK_NIDS(idl) : 0, 0, 0 );