From 55a30558a7ab823c3577cd9ded41a25f477c021e Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 19 Sep 2024 13:49:36 +0300 Subject: [PATCH] config: Don't run settings check functions inside @groups The groups can be included from different places, so alone they don't have a usable context for the checks. --- src/config/config-parser.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config/config-parser.c b/src/config/config-parser.c index 96b12f9b6d..bb166e13eb 100644 --- a/src/config/config-parser.c +++ b/src/config/config-parser.c @@ -1491,6 +1491,9 @@ config_all_parsers_check(struct config_parser_context *ctx, for (i = 0; i < count; i++) { if (parsers[i]->filter.default_settings) continue; + if (parsers[i]->filter.filter_name_array && + parsers[i]->filter.filter_name[0] == SETTINGS_INCLUDE_GROUP_PREFIX) + continue; ssl_set = get_str_setting(parsers[i], "ssl", global_ssl_set); if (strcmp(ssl_set, "no") != 0 && strcmp(global_ssl_set, "no") == 0 && !ssl_warned) { -- 2.47.3