aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-24 16:06:39 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-24 16:06:39 +0100
commit33b24d26a1a811c9488250d30fd41132387faf76 (patch)
tree825f51d6da322e579ca2906c2f631c3250a67128 /src/plugins
parent7448425afed57c354987d1a340cb58e45d24d9d5 (diff)
downloadrspamd-33b24d26a1a811c9488250d30fd41132387faf76.tar.gz
rspamd-33b24d26a1a811c9488250d30fd41132387faf76.zip
[Minor] Fix fuzzy whitelist map
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/fuzzy_check.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index fe95dc715..1c7d2f4de 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -99,7 +99,7 @@ struct fuzzy_ctx {
struct rspamd_config *cfg;
const gchar *default_symbol;
guint32 min_hash_len;
- radix_compressed_t *whitelist;
+ struct rspamd_radix_map_helper *whitelist;
struct rspamd_keypair_cache *keypairs_cache;
gdouble text_multiplier;
guint32 min_bytes;
@@ -2854,8 +2854,8 @@ fuzzy_symbol_callback (struct rspamd_task *task, void *unused)
/* Check whitelist */
if (fuzzy_module_ctx->whitelist) {
- if (radix_find_compressed_addr (fuzzy_module_ctx->whitelist,
- task->from_addr) != RADIX_NO_VALUE) {
+ if (rspamd_match_radix_map_addr (fuzzy_module_ctx->whitelist,
+ task->from_addr) != NULL) {
msg_info_task ("<%s>, address %s is whitelisted, skip fuzzy check",
task->message_id,
rspamd_inet_address_to_string (task->from_addr));