mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
add sanity checks
This commit is contained in:
parent
82019df71a
commit
960b5f8656
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue