commit 6adab61: [Minor] Fix confusion

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jul 12 17:00:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-07-12 17:59:27 +0100
URL: https://github.com/rspamd/rspamd/commit/6adab61b4aee60efb5176d4f599281e09866b671 (HEAD -> master)

[Minor] Fix confusion

---
 src/plugins/lua/asn.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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


More information about the Commits mailing list