diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-11-09 17:53:02 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-11-09 17:53:02 +0000 |
commit | ac4ad958a20dfc96e77c1dd302195737f4d1db45 (patch) | |
tree | d5b27eb926819dbda5bd475195473d9791cdf559 | |
parent | 3d7250582362c06e30e149e8d20876a9f2ae4336 (diff) | |
download | rspamd-ac4ad958a20dfc96e77c1dd302195737f4d1db45.tar.gz rspamd-ac4ad958a20dfc96e77c1dd302195737f4d1db45.zip |
[Fix] Properly set config field when creating tasks from Lua
-rw-r--r-- | src/lua/lua_task.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |