aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/surbl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-27 15:33:40 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-27 15:33:40 +0100
commite64c5411ff18eea69861b6ea11574a39c7290b57 (patch)
tree81cdfad068f564a5bb4e64f2ec962bbbfdbc0f7a /src/plugins/surbl.c
parent9b6dc9034592b836915b57749aa42581e78cd9ff (diff)
downloadrspamd-e64c5411ff18eea69861b6ea11574a39c7290b57.tar.gz
rspamd-e64c5411ff18eea69861b6ea11574a39c7290b57.zip
Fix plugins registration.
Diffstat (limited to 'src/plugins/surbl.c')
-rw-r--r--src/plugins/surbl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index 39a6e2974..bd87dc944 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -314,18 +314,18 @@ register_bit_symbols (struct rspamd_config *cfg, struct suffix_item *suffix)
while (g_hash_table_iter_next (&it, &k, &v)) {
bit = v;
- register_virtual_symbol (&cfg->cache, bit->symbol, 1);
+ register_virtual_symbol (cfg->cache, bit->symbol, 1);
msg_debug ("bit: %d", bit->bit);
}
}
else if (suffix->bits != NULL) {
for (i = 0; i < suffix->bits->len; i++) {
bit = &g_array_index (suffix->bits, struct surbl_bit_item, i);
- register_virtual_symbol (&cfg->cache, bit->symbol, 1);
+ register_virtual_symbol (cfg->cache, bit->symbol, 1);
}
}
else {
- register_virtual_symbol (&cfg->cache, suffix->symbol, 1);
+ register_virtual_symbol (cfg->cache, suffix->symbol, 1);
}
}
@@ -361,7 +361,7 @@ surbl_module_config (struct rspamd_config *cfg)
rspamd_config_get_module_opt (cfg, "surbl",
"redirector_symbol")) != NULL) {
surbl_module_ctx->redirector_symbol = ucl_obj_tostring (value);
- register_virtual_symbol (&cfg->cache,
+ register_virtual_symbol (cfg->cache,
surbl_module_ctx->redirector_symbol,
1.0);
}
@@ -553,7 +553,7 @@ surbl_module_config (struct rspamd_config *cfg)
surbl_module_ctx->suffixes = g_list_prepend (
surbl_module_ctx->suffixes,
new_suffix);
- register_callback_symbol (&cfg->cache,
+ register_callback_symbol (cfg->cache,
new_suffix->symbol,
1,
surbl_test_url,