]> source.dussan.org Git - rspamd.git/commitdiff
DMARC: Abort processing on policy failure (where this is not happening already)
authorAndrew Lewis <nerf@judo.za.org>
Thu, 16 Apr 2015 15:59:49 +0000 (17:59 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Thu, 16 Apr 2015 15:59:49 +0000 (17:59 +0200)
src/plugins/lua/dmarc.lua

index 0ca3ac4fdfc4a55dfe7a4c93a3dddffa3a1a922e..25f8d03f38d111f8216fe47c820a914f6a892aea 100644 (file)
@@ -131,6 +131,7 @@ local function dmarc_callback(task)
                 quarantine_policy = true
               elseif (policy ~= 'none') then
                 failed_policy = true
+                return
               end
             end
             subdomain_policy = string.match(e, '^sp=(.+)$')
@@ -151,6 +152,7 @@ local function dmarc_callback(task)
                 end
               else
                 failed_policy = true
+                return
               end
             end
             pct = string.match(e, '^pct=(%d+)$')