From c60f8249944c802a2447a6eaae890dacceff2cac Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 9 Nov 2023 17:53:02 +0000 Subject: [PATCH] [Fix] Properly set config field when creating tasks from Lua --- src/lua/lua_task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5