diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-06 15:21:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-06 15:21:03 +0000 |
commit | 3e368dfdf495029280e6f1d833ebaf4144d78052 (patch) | |
tree | d4e6b32f195c45712e0396e005d4dfaa60e7a2dd | |
parent | 8b7e04c87a0ee317fbcdccf47e32b208b6e67567 (diff) | |
parent | d874a5f2e1a2ea26507839c57ac125fc8b376eda (diff) | |
download | rspamd-3e368dfdf495029280e6f1d833ebaf4144d78052.tar.gz rspamd-3e368dfdf495029280e6f1d833ebaf4144d78052.zip |
Merge pull request #1401 from fatalbanana/T3
[Test] Silence warnings
-rw-r--r-- | src/plugins/lua/url_redirector.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/lua/url_redirector.lua b/src/plugins/lua/url_redirector.lua index c4c6823ee..cf90b8de7 100644 --- a/src/plugins/lua/url_redirector.lua +++ b/src/plugins/lua/url_redirector.lua @@ -51,7 +51,7 @@ local function cache_url(task, orig_url, url, key, param) end local function resolve_cached(task, orig_url, url, key, param, ntries) - local function resolve_url(task, orig_url, url, key, param, ntries) + local function resolve_url() if ntries > settings.nested_limit then -- We cannot resolve more, stop rspamd_logger.infox(task, 'cannot get more requests to resolve %s, stop on %s after %s attempts', @@ -115,7 +115,8 @@ local function resolve_cached(task, orig_url, url, key, param, ntries) if nerr then rspamd_logger.errx(task, 'got error while setting redirect keys: %s', nerr) elseif ndata == 1 then - resolve_url(task, url, url, key, param, ntries) + orig_url = url + resolve_url() end end @@ -132,7 +133,7 @@ local function resolve_cached(task, orig_url, url, key, param, ntries) rspamd_logger.errx(task, 'Couldn\'t schedule SETNX') end else - resolve_url(task, orig_url, url, key, param, ntries) + resolve_url() end end |