From: Pierangelo Masarati Date: Tue, 9 Mar 2004 14:45:10 +0000 (+0000) Subject: add sanity checks X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~332 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=960b5f8656d42b742de431a7dca16f47d2dae381;p=openldap add sanity checks --- diff --git a/servers/slapd/limits.c b/servers/slapd/limits.c index 64b36199bc..d1dd42f25b 100644 --- a/servers/slapd/limits.c +++ b/servers/slapd/limits.c @@ -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;