commit 082b94b: [Minor] Replies: Fix the case when we cannot find hash in Redis
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Mar 25 14:42:03 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-03-25 14:38:42 +0000
URL: https://github.com/rspamd/rspamd/commit/082b94b740de1bc45351ec0068f0a2587b75852a (HEAD -> master)
[Minor] Replies: Fix the case when we cannot find hash in Redis
---
src/plugins/lua/replies.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
More information about the Commits
mailing list