]> git.sur5r.net Git - openldap/commitdiff
Fix computed filter inversion
authorHoward Chu <hyc@openldap.org>
Tue, 29 Apr 2003 20:40:26 +0000 (20:40 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 29 Apr 2003 20:40:26 +0000 (20:40 +0000)
servers/slapd/filter.c

index e99403d4d3534de8a7bf229306c2f7970028e6c1..d634b6850dd8122d61e07fd8ff11eb02145168b6 100644 (file)
@@ -252,12 +252,12 @@ get_filter(
 
                assert( f.f_not != NULL );
                if ( f.f_not->f_choice == SLAPD_FILTER_COMPUTED ) {
+                       int fresult = f.f_not->f_result;
                        f.f_choice = SLAPD_FILTER_COMPUTED;
-                       f.f_result = f.f_not->f_result;
                        op->o_tmpfree( f.f_not, op->o_tmpmemctx );
                        f.f_not = NULL;
 
-                       switch( f.f_result ) {
+                       switch( fresult ) {
                        case LDAP_COMPARE_TRUE:
                                f.f_result = LDAP_COMPARE_FALSE;
                                break;