add sanity checks

This commit is contained in:
Pierangelo Masarati 2004-03-09 14:45:10 +00:00
parent 82019df71a
commit 960b5f8656

View File

@ -774,6 +774,11 @@ limits_parse_one(
int
limits_check( Operation *op, SlapReply *rs )
{
assert( op );
assert( rs );
/* FIXME: should this be always true? */
assert( op->o_tag == LDAP_REQ_SEARCH);
/* allow root to set no limit */
if ( be_isroot( op->o_bd, &op->o_ndn ) ) {
op->ors_limit = NULL;