]> source.dussan.org Git - rspamd.git/commitdiff
Fix reload issues in surbl and fuzzy_check.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Nov 2014 17:13:37 +0000 (17:13 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Nov 2014 17:13:37 +0000 (17:13 +0000)
src/plugins/fuzzy_check.c
src/plugins/surbl.c

index 88b95b102237980485c96e7aec08af0612a6c0ff..a2dd959bc993fe90073fbae9ec1bed62ba697a23 100644 (file)
@@ -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);
                }
        }
 
index f57876c111fe856eea4a58951f88cb2ccfe70078..931eb844c07728e89afa4a444cfabf33b3519488 100644 (file)
@@ -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);