From: Kurt Zeilenga Date: Sat, 23 Jun 2001 02:26:09 +0000 (+0000) Subject: Fix three value logic X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1285 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=323a03aa904c47d66a853478f54f3e5873885ab2;p=openldap Fix three value logic --- diff --git a/servers/slapd/filterentry.c b/servers/slapd/filterentry.c index 34cf68d658..83edbc6bb4 100644 --- a/servers/slapd/filterentry.c +++ b/servers/slapd/filterentry.c @@ -351,9 +351,10 @@ test_filter_and( int rc = test_filter( be, conn, op, e, f ); if ( rc == LDAP_COMPARE_FALSE ) { - rtn = LDAP_COMPARE_FALSE; + rtn = rc; break; } + if ( rc != LDAP_COMPARE_TRUE ) { rtn = rc; } @@ -393,10 +394,11 @@ test_filter_or( int rc = test_filter( be, conn, op, e, f ); if ( rc == LDAP_COMPARE_TRUE ) { - rtn = LDAP_COMPARE_TRUE; + rtn = rc; break; } - if ( rc != LDAP_COMPARE_TRUE ) { + + if ( rc != LDAP_COMPARE_FALSE ) { rtn = rc; } }