]> git.sur5r.net Git - openldap/commitdiff
ITS#4595 additional fix - don't allow age/cycle times of zero.
authorHoward Chu <hyc@openldap.org>
Sat, 17 Jun 2006 13:09:14 +0000 (13:09 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 17 Jun 2006 13:09:14 +0000 (13:09 +0000)
servers/slapd/overlays/accesslog.c

index 6284cc364b6f3c39aba14f5e89457c570f57536c..0a37433f163fcda19e6c9e97bbbf1ad447e332f9 100644 (file)
@@ -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;