diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-10 11:02:08 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-10 11:02:08 +0100 |
commit | daec65bd2a68c04b9144dff91c863cfd2cb30b93 (patch) | |
tree | 787ae4920fcf1ee3bca1a3cb693c49114270fc0f /src/lua/lua_task.c | |
parent | 6ecdf48de0f269be6924ec128fc8400cfba293a3 (diff) | |
download | rspamd-daec65bd2a68c04b9144dff91c863cfd2cb30b93.tar.gz rspamd-daec65bd2a68c04b9144dff91c863cfd2cb30b93.zip |
[Fix] Do not try to process skipped messages
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r-- | src/lua/lua_task.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index e4defa667..e60fe6592 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1572,6 +1572,11 @@ lua_task_set_pre_result (lua_State * L) if (task != NULL) { + if (RSPAMD_TASK_IS_SKIPPED (task)) { + /* Do not set pre-result for a skipped task */ + return 0; + } + if (lua_type (L, 2) == LUA_TNUMBER) { action = lua_tointeger (L, 2); } |