aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-11 17:13:37 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-11 17:13:37 +0000
commitc09c7caa5f04bd0da62ebcabe9243dd0f9ed99f1 (patch)
tree571ac91535b5b2ff9cc5a8778987a95aa4c0935f /src/plugins
parenta8f19f7a62ab1ff8b6b7836d3a6fc776c61a27b9 (diff)
downloadrspamd-c09c7caa5f04bd0da62ebcabe9243dd0f9ed99f1.tar.gz
rspamd-c09c7caa5f04bd0da62ebcabe9243dd0f9ed99f1.zip
Fix reload issues in surbl and fuzzy_check.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/fuzzy_check.c7
-rw-r--r--src/plugins/surbl.c1
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);