From daec65bd2a68c04b9144dff91c863cfd2cb30b93 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 10 Aug 2018 11:02:08 +0100 Subject: [Fix] Do not try to process skipped messages --- src/lua/lua_task.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lua/lua_task.c') 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); } -- cgit v1.2.3