]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Allow empty string lists in config
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 24 Aug 2020 12:22:22 +0000 (13:22 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 24 Aug 2020 13:13:56 +0000 (14:13 +0100)
src/libserver/cfg_rcl.c

index 885ebad4d600b9bdb5be32e4f8cc3cf4e6654060..ffdc5e5962ad8c7d166bc1145f2e75d8d2bf322f 100644 (file)
@@ -3262,6 +3262,8 @@ rspamd_rcl_parse_struct_string_list (rspamd_mempool_t *pool,
 
        ucl_object_iterate_free (iter);
 
+#if 0
+       /* WTF: why don't we allow empty list here?? */
        if (*target == NULL) {
                g_set_error (err,
                                CFG_RCL_ERROR,
@@ -3272,6 +3274,7 @@ rspamd_rcl_parse_struct_string_list (rspamd_mempool_t *pool,
                                obj->len);
                return FALSE;
        }
+#endif
 
        if (!is_hash && *target != NULL) {
                *target = g_list_reverse (*target);