]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] dmarc: floor connect timestamp before os.date for PUC Lua
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 2 May 2026 12:39:07 +0000 (13:39 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 2 May 2026 12:39:07 +0000 (13:39 +0100)
commitfc7423920c0801356db26798596b418fa6220c18
tree23c6a98ef53211274da08fed3248b9d61eab9fbc
parent629d8dffafdddc1cf832dd98cca735fa45c25d09
[Fix] dmarc: floor connect timestamp before os.date for PUC Lua

task:get_date returns a fractional double; PUC-Rio Lua 5.3+ rejects
non-integer floats as the second argument to os.date with "number has
no integer representation". LuaJIT accepts it, so the bug only fires
on the Fedora CI build.
src/plugins/lua/dmarc.lua