]> git.sur5r.net Git - openldap/commitdiff
clarify no limits in (internal) searches
authorPierangelo Masarati <ando@openldap.org>
Sat, 12 Jun 2004 17:32:20 +0000 (17:32 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 12 Jun 2004 17:32:20 +0000 (17:32 +0000)
servers/slapd/back-meta/search.c

index 2e239e3383f040d601684372ead96fd5fcf3f7b3..a1002c92c51e30a4d770fb8c68a600e726a88936 100644 (file)
@@ -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);
                }