From: Vsevolod Stakhov Date: Thu, 11 Oct 2018 17:41:18 +0000 (+0100) Subject: [Minor] Fix stack index X-Git-Tag: 1.8.1~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd0d565be66f02de3d190e9fd9106fa4ab10e668;p=thirdparty%2Frspamd.git [Minor] Fix stack index --- diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index a6b32b089e..5a6be50f0c 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1610,7 +1610,7 @@ lua_task_set_pre_result (lua_State * L) } if (lua_type (L, 6) == LUA_TNUMBER) { - priority = lua_tonumber (L, 5); + priority = lua_tonumber (L, 6); } if (action < METRIC_ACTION_MAX && action >= METRIC_ACTION_REJECT) {