From 082b94b740de1bc45351ec0068f0a2587b75852a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 25 Mar 2019 14:38:42 +0000 Subject: [PATCH] [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 -- 2.39.5