From: Timo Sirainen Date: Tue, 29 Jul 2025 12:36:00 +0000 (+0300) Subject: doveconf: Fix crash when asking for specific settings but config is unusable X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=482ff0b407e1a8cb95de08d5dec53ea4b82e786e;p=thirdparty%2Fdovecot%2Fcore.git doveconf: Fix crash when asking for specific settings but config is unusable --- diff --git a/src/config/doveconf.c b/src/config/doveconf.c index 4a7893f45a..c830ba7ec6 100644 --- a/src/config/doveconf.c +++ b/src/config/doveconf.c @@ -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) {