]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix stack index
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 11 Oct 2018 17:41:18 +0000 (18:41 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 11 Oct 2018 17:41:18 +0000 (18:41 +0100)
src/lua/lua_task.c

index a6b32b089e68b58c40d833cadf856126b2ae9077..5a6be50f0c8ea13c0688752bf58d0c08578a487a 100644 (file)
@@ -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) {