From: Vsevolod Stakhov Date: Fri, 6 Sep 2019 11:28:20 +0000 (+0100) Subject: [Minor] Lua_trie: Fix match for lua_text X-Git-Tag: 2.0~270 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d3360f80fc68af9c486ec66bd77c2c8723944058;p=rspamd.git [Minor] Lua_trie: Fix match for lua_text --- diff --git a/src/lua/lua_trie.c b/src/lua/lua_trie.c index b030c735a..82d11c50c 100644 --- a/src/lua/lua_trie.c +++ b/src/lua/lua_trie.c @@ -290,7 +290,7 @@ lua_trie_match (lua_State *L) } } else if (lua_type (L, 2) == LUA_TUSERDATA) { - t = lua_check_text (L, -1); + t = lua_check_text (L, 2); if (t && lua_trie_search_str (L, trie, t->start, t->len, cb)) { found = TRUE;