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/lua/lua_task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lua/lua_task.c') 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; -- cgit v1.2.3