From: Howard Chu Date: Sat, 17 Jun 2006 13:09:14 +0000 (+0000) Subject: ITS#4595 additional fix - don't allow age/cycle times of zero. X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~9^2~89 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a9b0a7824820c69664d4b54caa54ce3202de5d40;p=openldap ITS#4595 additional fix - don't allow age/cycle times of zero. --- diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index 6284cc364b..0a37433f16 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -745,11 +745,11 @@ log_cf_gen(ConfigArgs *c) break; case LOG_PURGE: li->li_age = log_age_parse( c->argv[1] ); - if ( li->li_age == -1 ) { + if ( li->li_age < 1 ) { rc = 1; } else { li->li_cycle = log_age_parse( c->argv[2] ); - if ( li->li_cycle == -1 ) { + if ( li->li_cycle < 1 ) { rc = 1; } else if ( slapMode & SLAP_SERVER_MODE ) { struct re_s *re = li->li_task;