]> git.ipfire.org Git - thirdparty/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)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 18 Oct 2017 10:16:44 +0000 (12:16 +0200)
src/lua/lua_util.c

index 2e98d64fde50b0ce94db38035db5d9554c89f829..30d0f90d5de1dd6720e9047efc97f4bd4aaf7059 100644 (file)
@@ -923,7 +923,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) {