From 77dce501104690be55239ab82919ec0b8ae03218 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 17 Jun 2006 01:28:50 +0000 Subject: [PATCH] Omit logpurge attr if no purge time was configured --- servers/slapd/overlays/accesslog.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index b60748c554..6284cc364b 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -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] = ' '; -- 2.39.5