From c09c7caa5f04bd0da62ebcabe9243dd0f9ed99f1 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 11 Nov 2014 17:13:37 +0000 Subject: [PATCH] Fix reload issues in surbl and fuzzy_check. --- src/plugins/fuzzy_check.c | 7 ++----- src/plugins/surbl.c | 1 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 88b95b102..a2dd959bc 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -455,11 +455,8 @@ fuzzy_check_module_config (struct rspamd_config *cfg) if ((value = rspamd_config_get_module_opt (cfg, "fuzzy_check", "rule")) != NULL) { - LL_FOREACH (value, cur) - { - if (fuzzy_parse_rule (cfg, cur) == -1) { - return -1; - } + LL_FOREACH (value, cur) { + fuzzy_parse_rule (cfg, cur); } } diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index f57876c11..931eb844c 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -534,6 +534,7 @@ surbl_module_reconfig (struct rspamd_config *cfg) surbl_module_ctx->whitelist_file = NULL; surbl_module_ctx->redirectors = NULL; surbl_module_ctx->redirector_trie = rspamd_trie_create (TRUE); + surbl_module_ctx->redirector_ptrs = g_ptr_array_new (); surbl_module_ctx->redirector_hosts = g_hash_table_new (rspamd_strcase_hash, rspamd_strcase_equal); -- 2.39.5