aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-21 15:32:16 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-21 15:32:16 +0100
commitecb4f9933341f7b0878972255fa7af3e1fb45528 (patch)
treeef80e495f102d5f3470aed9af2d3fc157688567d /src
parenta580a748b7c70b25a4c9b0cd4250919393c7c671 (diff)
downloadrspamd-ecb4f9933341f7b0878972255fa7af3e1fb45528.tar.gz
rspamd-ecb4f9933341f7b0878972255fa7af3e1fb45528.zip
Fix map initialization.
Diffstat (limited to 'src')
-rw-r--r--src/plugins/surbl.c2
-rw-r--r--src/plugins/surbl.h1
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;