]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Treat flags properly in dns tool
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 6 Dec 2019 18:02:45 +0000 (18:02 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 6 Dec 2019 18:02:45 +0000 (18:02 +0000)
lualib/rspamadm/dns_tool.lua

index 24a8fecf8a2561229be86efd481dbd2bc935c418..f45f4a4a3caca96b4b44a878da9e276445021469 100644 (file)
@@ -183,7 +183,7 @@ local function spf_handler(opts)
         end
       else
         printf('Error getting SPF record: %s (%s flag)', err,
-            flag_to_str(flag_or_policy))
+            flag_to_str(flag_or_policy or flags))
       end
     else
       printf('Cannot get SPF record: %s', err)