]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-settings: Skip applying groups early if there are no group includes
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 19 Mar 2025 10:02:04 +0000 (12:02 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 19 Mar 2025 10:02:04 +0000 (12:02 +0200)
src/lib-settings/settings.c

index 09a69cfd12af8cdf5f0c60166ff6ddb44c52bd93..96e348b8fee974497e60e7775320c30257eca73f 100644 (file)
@@ -1206,6 +1206,9 @@ settings_apply_groups(struct settings_apply_ctx *ctx,
                .type = LOG_TYPE_DEBUG,
        };
 
+       if (array_is_empty(&ctx->include_groups))
+               return 0;
+
        /* All group filters are at the end. When we see a non-group filter,
           we can stop. */
        int ret = 0;