run thru the list also in case of FALSE

This commit is contained in:
Pierangelo Masarati 2005-11-22 18:28:07 +00:00
parent 78ce7e2d32
commit 23d893b4cc

View File

@ -588,7 +588,12 @@ dynlist_response( Operation *op, SlapReply *rs )
break;
case LDAP_REQ_COMPARE:
if ( rs->sr_err == LDAP_NO_SUCH_ATTRIBUTE ) {
switch ( rs->sr_err ) {
/* NOTE: we waste a few cycles running the dynamic list
* also when the result is FALSE, which occurs if the
* dynamic entry itself contains the AVA attribute */
case LDAP_COMPARE_FALSE:
case LDAP_NO_SUCH_ATTRIBUTE:
return dynlist_compare( op, rs );
}
break;