From e77b064aab544ad16c8150b14198559516e41e7b Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 15 Apr 2004 09:15:30 +0000 Subject: [PATCH] fix default sizelimit on pr (ITS#3085) --- servers/slapd/config.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/servers/slapd/config.c b/servers/slapd/config.c index e0bc78ccc7..9431160bd2 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -48,14 +48,14 @@ */ struct slap_limits_set deflimit = { SLAPD_DEFAULT_TIMELIMIT, /* backward compatible limits */ - 0, + SLAPD_DEFAULT_TIMELIMIT, SLAPD_DEFAULT_SIZELIMIT, /* backward compatible limits */ - 0, + SLAPD_DEFAULT_SIZELIMIT, -1, /* no limit on unchecked size */ 0, /* page limit */ 0, /* hide number of entries left */ - 0 /* number of total entries returned by pagedResults equal to hard limit */ + SLAPD_DEFAULT_SIZELIMIT /* number of total entries returned by pagedResults equal to hard limit */ }; AccessControl *global_acl = NULL; @@ -843,7 +843,8 @@ read_config( const char *fname, int depth ) #endif } } - lim->lms_s_hard = 0; + lim->lms_s_hard = lim->lms_s_soft; + lim->lms_s_pr_total = lim->lms_s_soft; } } @@ -923,7 +924,7 @@ read_config( const char *fname, int depth ) #endif } } - lim->lms_t_hard = 0; + lim->lms_t_hard = lim->lms_t_soft; } } -- 2.39.5