mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 13:09:42 -05:00
ITS#4595 additional fix - don't allow age/cycle times of zero.
This commit is contained in:
parent
aec9afc4e3
commit
a9b0a78248
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue