]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Use pointer set instead of key map for task validation
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 22 Dec 2025 10:06:19 +0000 (10:06 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 22 Dec 2025 10:06:19 +0000 (10:06 +0000)
commit708d386f4c09a38470ad0c03a55dec5d6f081bdf
treef2cca0c01be874096f337a57cfe6b767bd7d5e73
parent282ce533807d76f665ca649679ee0933dddf1fde
[Fix] Use pointer set instead of key map for task validation

Store task pointers in a khash set and validate them on lookup
from Lua. This works with all code paths that create task userdata
directly without going through rspamd_lua_task_push.
src/libserver/task.c
src/libserver/task.h
src/lua/lua_task.c