summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-14 16:25:41 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-14 16:25:41 +0000
commit557c870057a43e72983e7f03feedbfc150e0b138 (patch)
treec59afd40eb471194d76db1bce97659ac16f9a127 /src/lua/lua_task.c
parentd0d0f333d3fd5d10bc6b88dd364cb792e326c8c2 (diff)
downloadrspamd-557c870057a43e72983e7f03feedbfc150e0b138.tar.gz
rspamd-557c870057a43e72983e7f03feedbfc150e0b138.zip
[Project] CDB maps: Start making cdb a first class citizen
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 5bb61644d..7e14b05de 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -6382,7 +6382,7 @@ lua_lookup_words_array (lua_State *L,
case RSPAMD_LUA_MAP_SET:
case RSPAMD_LUA_MAP_HASH:
/* We know that tok->normalized is zero terminated in fact */
- if (rspamd_match_hash_map (map->data.hash, key)) {
+ if (rspamd_match_hash_map (map->data.hash, key, keylen)) {
matched = TRUE;
}
break;