aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-19 18:43:03 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-19 18:43:03 +0000
commit033d4b2d749fca44e4b067f9a5486a289b61a95e (patch)
tree2602350841e54234dd41fa30c318f1d1a5d3964e /src/libserver
parent7fb50e6f4c0c000c52ac927c7a95f5d3349a8b8b (diff)
downloadrspamd-033d4b2d749fca44e4b067f9a5486a289b61a95e.tar.gz
rspamd-033d4b2d749fca44e4b067f9a5486a289b61a95e.zip
Use regexp hash functions for task re_cache.
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c
index f6eeef2b1..a4286634f 100644
--- a/src/libserver/task.c
+++ b/src/libserver/task.c
@@ -73,7 +73,7 @@ rspamd_task_new (struct rspamd_worker *worker)
rspamd_mempool_add_destructor (new_task->task_pool,
(rspamd_mempool_destruct_t) g_hash_table_unref,
new_task->results);
- new_task->re_cache = g_hash_table_new (rspamd_str_hash, rspamd_str_equal);
+ new_task->re_cache = g_hash_table_new (rspamd_regexp_hash, rspamd_regexp_equal);
rspamd_mempool_add_destructor (new_task->task_pool,
(rspamd_mempool_destruct_t) g_hash_table_unref,
new_task->re_cache);