mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
add sanity checks
This commit is contained in:
parent
82019df71a
commit
960b5f8656
@ -774,6 +774,11 @@ limits_parse_one(
|
|||||||
int
|
int
|
||||||
limits_check( Operation *op, SlapReply *rs )
|
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 */
|
/* allow root to set no limit */
|
||||||
if ( be_isroot( op->o_bd, &op->o_ndn ) ) {
|
if ( be_isroot( op->o_bd, &op->o_ndn ) ) {
|
||||||
op->ors_limit = NULL;
|
op->ors_limit = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user