From 557c870057a43e72983e7f03feedbfc150e0b138 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 14 Feb 2020 16:25:41 +0000 Subject: [Project] CDB maps: Start making cdb a first class citizen --- src/fuzzy_storage.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/fuzzy_storage.c') diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index f91fb61ac..b78350800 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -936,7 +936,8 @@ rspamd_fuzzy_process_command (struct fuzzy_session *session) hexbuf, sizeof (hexbuf) - 1); hexbuf[sizeof (hexbuf) - 1] = '\0'; - if (rspamd_match_hash_map (session->ctx->skip_hashes, hexbuf)) { + if (rspamd_match_hash_map (session->ctx->skip_hashes, + hexbuf, sizeof (hexbuf) - 1)) { result.v1.value = 401; result.v1.prob = 0.0f; @@ -2010,7 +2011,7 @@ start_fuzzy (struct rspamd_worker *worker) rspamd_kv_list_fin, rspamd_kv_list_dtor, (void **)&ctx->skip_hashes, - worker)) == NULL) { + worker, RSPAMD_MAP_DEFAULT)) == NULL) { msg_warn_config ("cannot load hashes list from %s", ucl_object_tostring (ctx->skip_map)); } -- cgit v1.2.3