diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-25 14:38:42 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-25 14:38:42 +0000 |
commit | 082b94b740de1bc45351ec0068f0a2587b75852a (patch) | |
tree | 5f87eec45231d39e71e2f5180eedc1774db53774 | |
parent | 266e842936768e42167eb67f2c73490c7da67ede (diff) | |
download | rspamd-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.lua | 2 |
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 |