summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-03-25 14:38:42 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-03-25 14:38:42 +0000
commit082b94b740de1bc45351ec0068f0a2587b75852a (patch)
tree5f87eec45231d39e71e2f5180eedc1774db53774
parent266e842936768e42167eb67f2c73490c7da67ede (diff)
downloadrspamd-082b94b740de1bc45351ec0068f0a2587b75852a.tar.gz
rspamd-082b94b740de1bc45351ec0068f0a2587b75852a.zip
[Minor] Replies: Fix the case when we cannot find hash in Redis
-rw-r--r--src/plugins/lua/replies.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua
index 48c760eed..dcba6cc81 100644
--- a/src/plugins/lua/replies.lua
+++ b/src/plugins/lua/replies.lua
@@ -88,7 +88,7 @@ local function replies_check(task)
rspamd_logger.errx(task, 'redis_get_cb received error: %1', err)
return
end
- if data and check_recipient(data) then
+ if data and type(data) == 'string' and check_recipient(data) then
-- Hash was found
task:insert_result(settings['symbol'], 1.0)
if settings['action'] ~= nil then