]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix the case
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 25 Nov 2020 17:23:52 +0000 (17:23 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 25 Nov 2020 17:23:52 +0000 (17:23 +0000)
src/libserver/re_cache.c

index 594b60b53dd2242ea2e1c8f8518d8027939cd39f..b2596d0f44f77cff1a964c1f0066542cb6ef946c 100644 (file)
@@ -941,7 +941,7 @@ rspamd_re_cache_process_selector (struct rspamd_task *task,
                gsize slen;
                const gchar *sel_data;
 
-               if (lua_type (L, -1) == LUA_TSTRING) {
+               if (lua_type (L, -1) != LUA_TTABLE) {
                        txt = lua_check_text_or_string (L, -1);
 
                        if (txt) {