From: Vsevolod Stakhov Date: Thu, 9 Nov 2023 17:53:02 +0000 (+0000) Subject: [Fix] Properly set config field when creating tasks from Lua X-Git-Tag: 3.7.4~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c60f8249944c802a2447a6eaae890dacceff2cac;p=rspamd.git [Fix] Properly set config field when creating tasks from Lua --- diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 427314745..fe6e498c9 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1847,7 +1847,7 @@ lua_task_create(lua_State *L) if (lua_type(L, 1) == LUA_TUSERDATA) { gpointer p; - p = rspamd_lua_check_udata_maybe(L, 2, "rspamd{config}"); + p = rspamd_lua_check_udata_maybe(L, 1, "rspamd{config}"); if (p) { cfg = *(struct rspamd_config **) p;