From: Vsevolod Stakhov Date: Sat, 18 May 2019 07:19:44 +0000 (+0100) Subject: [Minor] Fix condition X-Git-Tag: 2.0~890 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d9da5d2ba37ee2324e1c3cd940744a82910fd8b0;p=rspamd.git [Minor] Fix condition --- 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);