From: Vsevolod Stakhov Date: Mon, 12 Jul 2021 16:59:27 +0000 (+0100) Subject: [Minor] Fix confusion X-Git-Tag: 3.0~173 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6adab61b4aee60efb5176d4f599281e09866b671;p=rspamd.git [Minor] Fix confusion --- diff --git a/src/plugins/lua/asn.lua b/src/plugins/lua/asn.lua index d62bb56c1..3e379f27b 100644 --- a/src/plugins/lua/asn.lua +++ b/src/plugins/lua/asn.lua @@ -74,7 +74,7 @@ local function asn_check(task) task:insert_result(options['symbol'] .. '_FAIL', 1, string.format('%s:%s', req_name, dns_err)) return end - if not (results or results[1]) then + if not results or not results[1] then rspamd_logger.infox(task, 'cannot query ip %s on %s: no results', req_name, serv) return