diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-08-24 13:22:22 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-08-24 14:13:56 +0100 |
commit | cde1808617fb86932dc18cbd7a92f9852b32b632 (patch) | |
tree | 47503e244ab238c3f62745296124cbbd280b23e1 /src/libserver | |
parent | 775087ebc3f7a5e3852c8bd39e3364fd3da8f10e (diff) | |
download | rspamd-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.c | 3 |
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); |