From b7fd633e8af3b4910156c6596fe22220285fc4d4 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 29 Apr 2003 20:40:26 +0000 Subject: [PATCH] Fix computed filter inversion --- servers/slapd/filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5