Browse Source

[Fix] Properly set config field when creating tasks from Lua

tags/3.8.0
Vsevolod Stakhov 7 months ago
parent
commit
ac4ad958a2
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/lua/lua_task.c

+ 1
- 1
src/lua/lua_task.c View File

@@ -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;

Loading…
Cancel
Save