From: Andrew Lewis Date: Fri, 17 Feb 2017 16:17:35 +0000 (+0200) Subject: [Minor] Fix rspamd_parse_redis_server X-Git-Tag: 1.5.0~89^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1431%2Fhead;p=thirdparty%2Frspamd.git [Minor] Fix rspamd_parse_redis_server --- diff --git a/rules/global_functions.lua b/rules/global_functions.lua index cab77b714b..d0e9c07fba 100644 --- a/rules/global_functions.lua +++ b/rules/global_functions.lua @@ -3,8 +3,9 @@ local logger = require "rspamd_logger" -- This function parses redis server definition using either -- specific server string for this module or global -- redis section -function rspamd_parse_redis_server(module_name, result) +function rspamd_parse_redis_server(module_name) + local result = {} local default_port = 6379 local default_timeout = 1.0 local upstream_list = require "rspamd_upstream_list" @@ -66,7 +67,6 @@ function rspamd_parse_redis_server(module_name, result) -- Try local options local opts = rspamd_config:get_all_opt(module_name) - local result = {} local ret = false if opts then