From f048e5c4e7e5ca2dc212dba1b955c18457e01108 Mon Sep 17 00:00:00 2001 From: SJ Date: Thu, 18 Sep 2014 10:44:45 +0200 Subject: [PATCH] piler daemon reload fix --- src/config.h | 4 ++-- src/piler.c | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/config.h b/src/config.h index 4fa2d1b6..ad89f328 100644 --- a/src/config.h +++ b/src/config.h @@ -12,9 +12,9 @@ #define PROGNAME "piler" #define PILERGETD_PROGNAME "pilergetd" -#define VERSION "1.2.0-pre" +#define VERSION "1.1.1-pre" -#define BUILD 888 +#define BUILD 889 #define HOSTID "mailarchiver" diff --git a/src/piler.c b/src/piler.c index 22821263..c3d0fdf6 100644 --- a/src/piler.c +++ b/src/piler.c @@ -315,8 +315,6 @@ void initialise_configuration(){ initrules(data.archiving_rules); initrules(data.retention_rules); - memset(data.starttls, 0, sizeof(data.starttls)); - #ifdef HAVE_STARTTLS if(cfg.tls_enable > 0 && data.ctx == NULL && init_ssl() == OK){ snprintf(data.starttls, sizeof(data.starttls)-1, "250-STARTTLS\r\n"); @@ -383,6 +381,7 @@ int main(int argc, char **argv){ initrules(data.retention_rules); data.ctx = NULL; data.ssl = NULL; + memset(data.starttls, 0, sizeof(data.starttls)); initialise_configuration();