]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Handle Lua 5.4 require returning two values
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 6 Dec 2025 14:18:20 +0000 (14:18 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 6 Dec 2025 14:18:20 +0000 (14:18 +0000)
commit5b62d047fa2bfef42792fc4e7d75f8f31a6174a4
treef5f04c0d15be721c4546779166ed1da409d8be2c
parent0c0c0c4bec55c135bef0ae944fabf5340d4303c3
[Fix] Handle Lua 5.4 require returning two values

Lua 5.4's require() returns both the module and the file path, while
LuaJIT returns only the module. Save stack top before luaL_dostring
and restore to top+1 after to keep only the first return value.
src/libstat/stat_config.c
src/lua/lua_config.c
src/plugins/fuzzy_check.c
src/rspamadm/rspamadm.c