]> git.sur5r.net Git - openldap/commitdiff
ITS#3707 changed SLAPD_FILTER_COMPUTED
authorHoward Chu <hyc@openldap.org>
Tue, 26 Dec 2006 00:00:48 +0000 (00:00 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 26 Dec 2006 00:00:48 +0000 (00:00 +0000)
servers/slapd/overlays/rwmmap.c

index ed30211df1fdd972c7786cb7a3284abca19aaf75..2554bc04e77cee3174eb27c6dcac5b6261cf5c3b 100644 (file)
@@ -479,7 +479,7 @@ rwm_int_filter_map_rewrite(
                return LDAP_OTHER;
        }
 
-       switch ( f->f_choice ) {
+       switch ( f->f_choice & SLAPD_FILTER_MASK ) {
        case LDAP_FILTER_EQUALITY:
                ad = f->f_av_desc;
                if ( map_attr_value( dc, &ad, &atmp,
@@ -688,7 +688,7 @@ rwm_int_filter_map_rewrite(
                break;
        }
 
-       case 0:
+       case -1:
 computed:;
                filter_free_x( op, f );
                f->f_choice = SLAPD_FILTER_COMPUTED;