]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveconf: Fix crash when asking for specific settings but config is unusable
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 29 Jul 2025 12:36:00 +0000 (15:36 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Sun, 3 Aug 2025 17:22:44 +0000 (17:22 +0000)
src/config/doveconf.c

index 4a7893f45a0443f63bb2500077ea7f5ec2008baf..c830ba7ec6a29e956832bdc127dd395a17014c8f 100644 (file)
@@ -1275,7 +1275,8 @@ int main(int argc, char *argv[])
                        error);
        }
 
-       if ((ret == -1 && exec_args != NULL) || ret == 0 || ret == -2)
+       if ((ret == -1 && exec_args != NULL) || ret == 0 || ret == -2 ||
+           config == NULL)
                i_fatal("%s", error);
 
        if (dump_full && exec_args != NULL) {