aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-17 11:05:40 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-17 11:05:40 +0100
commit8aae3eae774dae1e56e6b401b42aa20bd777112d (patch)
tree29acaf8eaf6d8acb3fdc290a8df2dcb096985fd5 /src
parent8139bbca9cf81108c17b607acad8971e9a7d404b (diff)
downloadrspamd-8aae3eae774dae1e56e6b401b42aa20bd777112d.tar.gz
rspamd-8aae3eae774dae1e56e6b401b42aa20bd777112d.zip
[Minor] Fix some more issues
Diffstat (limited to 'src')
-rw-r--r--src/lua/lua_expression.c5
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");