]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
config: Don't warn that ssl_parameters_regenerate=0 should have "hours" suffix.
authorTimo Sirainen <tss@iki.fi>
Sat, 10 Dec 2011 05:28:22 +0000 (07:28 +0200)
committerTimo Sirainen <tss@iki.fi>
Sat, 10 Dec 2011 05:28:22 +0000 (07:28 +0200)
src/config/old-set-parser.c

index c20208f80ee10945643c6050105b9e2900dcdf5e..ef187ff84436f5d92c6f5c0d2328beaaef48ea5d 100644 (file)
@@ -141,7 +141,7 @@ old_settings_handle_root(struct config_parser_context *ctx,
                return TRUE;
        }
        if (strcmp(key, "ssl_parameters_regenerate") == 0 &&
-           str_is_numeric(value, '\0')) {
+           str_is_numeric(value, '\0') && strcmp(value, "0") != 0) {
                obsolete(ctx, "%s should have 'hours' suffix", key);
                config_apply_line(ctx, "", t_strconcat(key, "=", value, "h", NULL), NULL);
                return TRUE;