From: Howard Chu Date: Sat, 17 Jun 2006 01:28:50 +0000 (+0000) Subject: Omit logpurge attr if no purge time was configured X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~9^2~92 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=77dce501104690be55239ab82919ec0b8ae03218;p=openldap Omit logpurge attr if no purge time was configured --- 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] = ' ';