Skip to content
Snippets Groups Projects
Commit 960b5f86 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

add sanity checks

parent 82019df7
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment