commit 0aae797: [Minor] Fix count check
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Jul 17 15:28:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-07-17 16:20:59 +0100
URL: https://github.com/rspamd/rspamd/commit/0aae79766622ea1ecfd1894cd2eeb85dcee6aeff
[Minor] Fix count check
---
src/plugins/lua/reputation.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/lua/reputation.lua b/src/plugins/lua/reputation.lua
index 5487020c1..b378960e2 100644
--- a/src/plugins/lua/reputation.lua
+++ b/src/plugins/lua/reputation.lua
@@ -839,7 +839,7 @@ local function reputation_redis_init(rule, cfg, ev_base, worker)
{% endfor %}
end
- return {cnt,results}
+ return {cnt or 0, results}
]]
local get_script = lua_util.jinja_template(redis_get_script_tpl,
More information about the Commits
mailing list