aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-08-24 13:22:22 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-08-24 14:13:56 +0100
commitcde1808617fb86932dc18cbd7a92f9852b32b632 (patch)
tree47503e244ab238c3f62745296124cbbd280b23e1 /src/libserver
parent775087ebc3f7a5e3852c8bd39e3364fd3da8f10e (diff)
downloadrspamd-cde1808617fb86932dc18cbd7a92f9852b32b632.tar.gz
rspamd-cde1808617fb86932dc18cbd7a92f9852b32b632.zip
[Minor] Allow empty string lists in config
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/cfg_rcl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index 885ebad4d..ffdc5e596 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -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);