From 960b5f8656d42b742de431a7dca16f47d2dae381 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 9 Mar 2004 14:45:10 +0000 Subject: [PATCH] add sanity checks --- servers/slapd/limits.c | 5 +++++ 1 file changed, 5 insertions(+) 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;