From: Vsevolod Stakhov Date: Sun, 22 Jun 2025 14:48:34 +0000 (+0100) Subject: [Minor] Fix issue with scores comparison while I'm here X-Git-Tag: 3.13.0~56^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3bb55f0e628056ddc6085a42213ca42c4d9acf6a;p=thirdparty%2Frspamd.git [Minor] Fix issue with scores comparison while I'm here Issue: #5384 --- diff --git a/lualib/lua_cfg_transform.lua b/lualib/lua_cfg_transform.lua index aaa0c7390d..ec11ef2996 100644 --- a/lualib/lua_cfg_transform.lua +++ b/lualib/lua_cfg_transform.lua @@ -376,7 +376,7 @@ return function(cfg) local next_act = actions_order[j] if actions:at(next_act) and actions:at(next_act):type() == 'number' then local next_score = actions:at(next_act):unwrap() - if next_score <= score then + if type(score) == 'number' and type(next_score) == 'number' and next_score <= score then logger.errx(rspamd_config, 'invalid actions thresholds order: action %s (%s) must have lower ' .. 'score than action %s (%s)', act, score, next_act, next_score) ret = false