Skip to content

Commit

Permalink
[Fix] Properly set config field when creating tasks from Lua
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Nov 9, 2023
1 parent 3d72505 commit ac4ad95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lua/lua_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ac4ad95

Please sign in to comment.