]> git.sur5r.net Git - openldap/commitdiff
Omit logpurge attr if no purge time was configured
authorHoward Chu <hyc@openldap.org>
Sat, 17 Jun 2006 01:28:50 +0000 (01:28 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 17 Jun 2006 01:28:50 +0000 (01:28 +0000)
servers/slapd/overlays/accesslog.c

index b60748c5547a416a033616c8932b62b36a593886..6284cc364b6f3c39aba14f5e89457c570f57536c 100644 (file)
@@ -620,6 +620,10 @@ log_cf_gen(ConfigArgs *c)
                        rc = mask_to_verbs( logops, li->li_ops, &c->rvalue_vals );
                        break;
                case LOG_PURGE:
+                       if ( !li->li_age ) {
+                               rc = 1;
+                               break;
+                       }
                        agebv.bv_val = agebuf;
                        log_age_unparse( li->li_age, &agebv );
                        agebv.bv_val[agebv.bv_len] = ' ';