]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
config: Number of new config changes for 0.0.0 version is always 0
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 3 Sep 2025 08:39:24 +0000 (11:39 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Tue, 14 Oct 2025 11:28:44 +0000 (11:28 +0000)
src/config/old-set-parser.c

index e78b14ca5bc726e16df3462cdfa9f009afe9a0c6..7e23eaf5b83682cc7c4cc6e3d2920f624b640021 100644 (file)
@@ -108,6 +108,9 @@ old_settings_default_changes_count(const char *dovecot_config_version)
        const struct setting_history_default *def;
        unsigned int count = 0;
 
+       if (!has_config_version(dovecot_config_version))
+               return 0;
+
        array_foreach(&history->defaults, def) {
                if (version_cmp(def->version, dovecot_config_version) <= 0)
                        break;