aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-11-25 10:45:57 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-11-25 10:45:57 +0200
commit43fd8553ab1f21b8f4d9d815dcaa436f243fb4b1 (patch)
treed1b7390da1db88b709a3b31b8c200b27e80da93c
parent8ebc1e5d32a45552d86bba4bc32fde3bb4b6c0d1 (diff)
downloadrspamd-43fd8553ab1f21b8f4d9d815dcaa436f243fb4b1.tar.gz
rspamd-43fd8553ab1f21b8f4d9d815dcaa436f243fb4b1.zip
[Fix] Fix some issues in redis settings
-rw-r--r--src/plugins/lua/settings.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua
index cdff4b853..fffa7cfbb 100644
--- a/src/plugins/lua/settings.lua
+++ b/src/plugins/lua/settings.lua
@@ -570,7 +570,7 @@ if redis_section then
if redis_params then
local handlers = redis_section.handlers
- for _,h in ipairs(handlers) do
+ for id,h in pairs(handlers) do
local chunk,err = load(h)
if not chunk then
@@ -582,7 +582,7 @@ if redis_section then
rspamd_logger.errx(rspamd_config, 'Cannot add handler from string: %s',
tostring(func))
else
- table.insert(redis_key_handlers, func)
+ redis_key_handlers[id] = func
end
end
end