diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-27 15:33:40 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-27 15:33:40 +0100 |
commit | e64c5411ff18eea69861b6ea11574a39c7290b57 (patch) | |
tree | 81cdfad068f564a5bb4e64f2ec962bbbfdbc0f7a /src/plugins/fuzzy_check.c | |
parent | 9b6dc9034592b836915b57749aa42581e78cd9ff (diff) | |
download | rspamd-e64c5411ff18eea69861b6ea11574a39c7290b57.tar.gz rspamd-e64c5411ff18eea69861b6ea11574a39c7290b57.zip |
Fix plugins registration.
Diffstat (limited to 'src/plugins/fuzzy_check.c')
-rw-r--r-- | src/plugins/fuzzy_check.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index ebaab2717..c1556fa4d 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -174,7 +174,7 @@ parse_flags (struct fuzzy_rule *rule, /* Add flag to hash table */ g_hash_table_insert (rule->mappings, GINT_TO_POINTER (map->fuzzy_flag), map); - register_virtual_symbol (&cfg->cache, map->symbol, 1.0); + register_virtual_symbol (cfg->cache, map->symbol, 1.0); } else { msg_err ("fuzzy_map parameter has no flag definition"); @@ -383,7 +383,7 @@ fuzzy_parse_rule (struct rspamd_config *cfg, const ucl_object_t *obj) fuzzy_module_ctx->fuzzy_rules, rule); if (rule->symbol != fuzzy_module_ctx->default_symbol) { - register_virtual_symbol (&cfg->cache, rule->symbol, 1.0); + register_virtual_symbol (cfg->cache, rule->symbol, 1.0); } } @@ -484,7 +484,7 @@ fuzzy_check_module_config (struct rspamd_config *cfg) } if (fuzzy_module_ctx->fuzzy_rules != NULL) { - register_callback_symbol (&cfg->cache, fuzzy_module_ctx->default_symbol, + register_callback_symbol (cfg->cache, fuzzy_module_ctx->default_symbol, 1.0, fuzzy_symbol_callback, NULL); } else { |