diff options
Diffstat (limited to 'src/lua/lua_expression.c')
-rw-r--r-- | src/lua/lua_expression.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lua/lua_expression.c b/src/lua/lua_expression.c index b2addd30c..8c44eba08 100644 --- a/src/lua/lua_expression.c +++ b/src/lua/lua_expression.c @@ -352,7 +352,6 @@ lua_expr_create (lua_State *L) if (lua_type (L, 1) != LUA_TSTRING || (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); lua_pushstring (L, "bad arguments"); } @@ -371,7 +370,7 @@ lua_expr_create (lua_State *L) lua_gettable (L, -2); if (lua_type (L, -1) != LUA_TFUNCTION) { - lua_pop (L, 2); + lua_pop (L, 1); lua_pushnil (L); lua_pushstring (L, "bad parse callback"); @@ -385,7 +384,7 @@ lua_expr_create (lua_State *L) if (lua_type (L, -1) != LUA_TFUNCTION) { if (lua_type (L, -1) != LUA_TNIL && lua_type (L, -1) != LUA_TNONE) { - lua_pop (L, 2); + lua_pop (L, 1); lua_pushnil (L); lua_pushstring (L, "bad process callback"); |