From 4c685bfd1ee01ad588b0fc26dba813ca452c6d0c Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 12 Jun 2004 17:32:20 +0000 Subject: [PATCH] clarify no limits in (internal) searches --- servers/slapd/back-meta/search.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.5