From: Howard Chu Date: Tue, 29 Apr 2003 20:40:26 +0000 (+0000) Subject: Fix computed filter inversion X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~212 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b7fd633e8af3b4910156c6596fe22220285fc4d4;p=openldap Fix computed filter inversion --- diff --git a/servers/slapd/filter.c b/servers/slapd/filter.c index e99403d4d3..d634b6850d 100644 --- a/servers/slapd/filter.c +++ b/servers/slapd/filter.c @@ -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;