summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-17 16:04:17 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-17 16:04:17 +0100
commit1f6ae62b7e9fefd84102b7063a29555bd32eaa8c (patch)
treebe1f15d49bd2267cceed1e21e592907c4c1d7032 /src
parent0a381b088da83d5400681d272174508fdbd79116 (diff)
downloadrspamd-1f6ae62b7e9fefd84102b7063a29555bd32eaa8c.tar.gz
rspamd-1f6ae62b7e9fefd84102b7063a29555bd32eaa8c.zip
[Fix] Fix crash if skip_map is used
Diffstat (limited to 'src')
-rw-r--r--src/fuzzy_storage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index c45a998ca..44b7c555e 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -167,7 +167,7 @@ struct rspamd_fuzzy_storage_ctx {
struct rspamd_worker *worker;
struct rspamd_http_connection_router *collection_rt;
const ucl_object_t *skip_map;
- GHashTable *skip_hashes;
+ struct rspamd_hash_map_helper *skip_hashes;
guchar cookie[COOKIE_SIZE];
};
@@ -911,7 +911,7 @@ rspamd_fuzzy_process_command (struct fuzzy_session *session)
hexbuf, sizeof (hexbuf) - 1);
hexbuf[sizeof (hexbuf) - 1] = '\0';
- if (g_hash_table_lookup (session->ctx->skip_hashes, hexbuf)) {
+ if (rspamd_match_hash_map (session->ctx->skip_hashes, hexbuf)) {
result.v1.value = 401;
result.v1.prob = 0.0;