]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
config: Fix parsing nested named (non-list) filters in default settings
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 16 Nov 2023 23:30:26 +0000 (01:30 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:10 +0000 (12:34 +0200)
src/config/config-parser.c

index 00915d61a556c6732678bafb046abc5f2ee14f42..92b8738a14a09c0c08f817b1cd61a40ceed1cd08 100644 (file)
@@ -695,13 +695,12 @@ again:
                } else {
                        ctx->cur_section->filter_parser = filter_parser;
                }
-               if (!filter.filter_name_array) {
+               if (!filter.filter_name_array)
                        key_with_path = p + 1;
-                       break;
+               else {
+                       i_assert(p2 != NULL);
+                       key_with_path = p2 + 1;
                }
-
-               i_assert(p2 != NULL);
-               key_with_path = p2 + 1;
        }
 
        if (ctx->filter_name_prefixes_count > 0 &&