diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-05 09:20:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-05 09:20:33 +0100 |
commit | 0d33a57448b61167231b9bf999417a835d69d1bd (patch) | |
tree | 793fdee4f039c679a01d65e00f44248231e58a41 /src | |
parent | 3be27b3358b4c4fd092af6979809eb237d1bff6a (diff) | |
download | rspamd-0d33a57448b61167231b9bf999417a835d69d1bd.tar.gz rspamd-0d33a57448b61167231b9bf999417a835d69d1bd.zip |
[Minor] Fix headers_foreach invocation
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_mimepart.c | 2 | ||||
-rw-r--r-- | src/lua/lua_task.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_mimepart.c b/src/lua/lua_mimepart.c index 07c389e97..7f6ede7ef 100644 --- a/src/lua/lua_mimepart.c +++ b/src/lua/lua_mimepart.c @@ -985,7 +985,7 @@ lua_mimepart_headers_foreach (lua_State *L) lua_pushstring (L, hdr->name); rspamd_lua_push_header (L, hdr, full, raw); - if (lua_pcall (L, 3, 1, 0) != 0) { + if (lua_pcall (L, 2, 1, 0) != 0) { msg_err ("call to header_foreach failed: %s", lua_tostring (L, -1)); lua_pop (L, 1); diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 96eec1faf..a3f0bc212 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -4056,7 +4056,7 @@ lua_task_headers_foreach (lua_State *L) lua_pushstring (L, hdr->name); rspamd_lua_push_header (L, hdr, full, raw); - if (lua_pcall (L, 3, 1, 0) != 0) { + if (lua_pcall (L, 2, 1, 0) != 0) { msg_err_task ("call to header_foreach failed: %s", lua_tostring (L, -1)); lua_pop (L, 1); |