diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-05-18 08:19:44 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-05-18 08:19:44 +0100 |
commit | d9da5d2ba37ee2324e1c3cd940744a82910fd8b0 (patch) | |
tree | 540a5058c4cc850b8eb33557e67d7923608a9825 | |
parent | cef8b983ab7efbf78709c2ed7d5a519a1090df5f (diff) | |
download | rspamd-d9da5d2ba37ee2324e1c3cd940744a82910fd8b0.tar.gz rspamd-d9da5d2ba37ee2324e1c3cd940744a82910fd8b0.zip |
[Minor] Fix condition
-rw-r--r-- | src/lua/lua_expression.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_expression.c b/src/lua/lua_expression.c index d2c1b4a4b..84d33a26e 100644 --- a/src/lua/lua_expression.c +++ b/src/lua/lua_expression.c @@ -352,7 +352,7 @@ lua_expr_create (lua_State *L) /* Check sanity of the arguments */ if (lua_type (L, 1) != LUA_TSTRING || - (lua_type (L, 2) != LUA_TTABLE || lua_type (L, 2) != LUA_TFUNCTION) || + (lua_type (L, 2) != LUA_TTABLE && lua_type (L, 2) != LUA_TFUNCTION) || rspamd_lua_check_mempool (L, 3) == NULL) { msg_info ("bad arguments to lua_expr_create"); lua_pushnil (L); |