From 9daf62847cdef2dfffa929a6e70c08bef4b4f869 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Fri, 17 Feb 2017 18:17:35 +0200 Subject: [PATCH] [Minor] Fix rspamd_parse_redis_server --- rules/global_functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/global_functions.lua b/rules/global_functions.lua index cab77b714..d0e9c07fb 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 -- 2.39.5