Fix computed filter inversion

This commit is contained in:
Howard Chu 2003-04-29 20:40:26 +00:00
parent 4abff760a0
commit b7fd633e8a

View File

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