diff --git a/src/config.h b/src/config.h index 4fa2d1b..ad89f32 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 2282126..c3d0fdf 100644 --- a/src/piler.c +++ b/src/piler.c @@ -315,8 +315,6 @@ 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 @@ initrules(data.retention_rules); data.ctx = NULL; data.ssl = NULL; + memset(data.starttls, 0, sizeof(data.starttls)); initialise_configuration();