]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix lua_text processing in lua_util_tokenize_text
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 17 Oct 2017 18:24:21 +0000 (19:24 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 17 Oct 2017 18:24:21 +0000 (19:24 +0100)
src/lua/lua_util.c

index 6f782b254620ed21d22e48a7fc12adf72e397c05..538c8d9f7f6f920c7d401ecaa32bb991819f38cb 100644 (file)
@@ -933,7 +933,7 @@ lua_util_tokenize_text (lua_State *L)
        if (lua_type (L, 1) == LUA_TSTRING) {
                in = luaL_checklstring (L, 1, &len);
        }
-       else if (lua_type (L, 1) == LUA_TTABLE) {
+       else if (lua_type (L, 1) == LUA_TUSERDATA) {
                t = lua_check_text (L, 1);
 
                if (t) {