diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-06 12:28:20 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-06 12:28:20 +0100 |
commit | d3360f80fc68af9c486ec66bd77c2c8723944058 (patch) | |
tree | d5a459a5bc0be77c0fa8defd4528b42877561039 /src/lua/lua_trie.c | |
parent | c33d98cf7705adbe73f997620e5c9bbede737c61 (diff) | |
download | rspamd-d3360f80fc68af9c486ec66bd77c2c8723944058.tar.gz rspamd-d3360f80fc68af9c486ec66bd77c2c8723944058.zip |
[Minor] Lua_trie: Fix match for lua_text
Diffstat (limited to 'src/lua/lua_trie.c')
-rw-r--r-- | src/lua/lua_trie.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |