From: Pierangelo Masarati Date: Sat, 12 Jun 2004 17:32:20 +0000 (+0000) Subject: clarify no limits in (internal) searches X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~277 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4c685bfd1ee01ad588b0fc26dba813ca452c6d0c;p=openldap clarify no limits in (internal) searches --- diff --git a/servers/slapd/back-meta/search.c b/servers/slapd/back-meta/search.c index 2e239e3383..a1002c92c5 100644 --- a/servers/slapd/back-meta/search.c +++ b/servers/slapd/back-meta/search.c @@ -124,11 +124,11 @@ meta_back_search( Operation *op, SlapReply *rs ) ldap_set_option( lsc->ld, LDAP_OPT_DEREF, ( void * )&op->ors_deref); } - if ( op->ors_tlimit != -1 ) { + if ( op->ors_tlimit != SLAP_NO_LIMIT ) { ldap_set_option( lsc->ld, LDAP_OPT_TIMELIMIT, ( void * )&op->ors_tlimit); } - if ( op->ors_slimit != -1 ) { + if ( op->ors_slimit != SLAP_NO_LIMIT ) { ldap_set_option( lsc->ld, LDAP_OPT_SIZELIMIT, ( void * )&op->ors_slimit); }