aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/fuzzy_check.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fuzzy_check.c')
-rw-r--r--src/plugins/fuzzy_check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index 385b8aadc..a5b62875e 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -832,12 +832,12 @@ fuzzy_check_module_config (struct rspamd_config *cfg)
str = ucl_obj_tostring (value);
- if (!rspamd_map_is_map (str)) {
+ if (str && !rspamd_map_is_map (str)) {
radix_add_generic_iplist (str,
&fuzzy_module_ctx->whitelist);
}
else {
- rspamd_map_add (cfg, str,
+ rspamd_map_add_from_ucl (cfg, value,
"Fuzzy whitelist", rspamd_radix_read, rspamd_radix_fin,
(void **)&fuzzy_module_ctx->whitelist);