diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-21 15:32:16 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-21 15:32:16 +0100 |
commit | ecb4f9933341f7b0878972255fa7af3e1fb45528 (patch) | |
tree | ef80e495f102d5f3470aed9af2d3fc157688567d /src | |
parent | a580a748b7c70b25a4c9b0cd4250919393c7c671 (diff) | |
download | rspamd-ecb4f9933341f7b0878972255fa7af3e1fb45528.tar.gz rspamd-ecb4f9933341f7b0878972255fa7af3e1fb45528.zip |
Fix map initialization.
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/surbl.c | 2 | ||||
-rw-r--r-- | src/plugins/surbl.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index 95e8d3979..511d4331c 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -396,7 +396,7 @@ surbl_module_config (struct rspamd_config *cfg) rspamd_map_add (cfg, ucl_obj_tostring ( value), "SURBL redirectors list", read_redirectors_list, fin_redirectors_list, - (void **)&surbl_module_ctx->redirector_hosts); + (void **)&surbl_module_ctx->redirector_map_data); } if ((value = diff --git a/src/plugins/surbl.h b/src/plugins/surbl.h index c3c101c37..0412192b9 100644 --- a/src/plugins/surbl.h +++ b/src/plugins/surbl.h @@ -31,6 +31,7 @@ struct surbl_ctx { GHashTable **exceptions; GHashTable *whitelist; GHashTable *redirector_hosts; + void *redirector_map_data; ac_trie_t *redirector_trie; GArray *redirector_ptrs; guint use_redirector; |