make sure appropriate limits are in place (ITS#4336)

This commit is contained in:
Pierangelo Masarati 2006-01-12 22:48:02 +00:00
parent 4c39d2c5a0
commit 7124ec615e

View file

@ -748,7 +748,16 @@ cleanup:;
}
} else {
rc = ldap_chain_op( op, rs, lback->bi_op_search, ref );
/* we might get here before any database actually
* performed a search; in those cases, we need
* to check limits, to make sure safe defaults
* are in place */
if ( op->ors_limit != NULL || limits_check( op, rs ) == 0 ) {
rc = ldap_chain_op( op, rs, lback->bi_op_search, ref );
} else {
rc = SLAP_CB_CONTINUE;
}
}
break;