From: Vsevolod Stakhov Date: Mon, 25 Mar 2019 14:38:42 +0000 (+0000) Subject: [Minor] Replies: Fix the case when we cannot find hash in Redis X-Git-Tag: 1.9.1~49 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=082b94b740de1bc45351ec0068f0a2587b75852a;p=rspamd.git [Minor] Replies: Fix the case when we cannot find hash in Redis --- 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