From: Vsevolod Stakhov Date: Mon, 12 Apr 2021 15:55:26 +0000 (+0100) Subject: [Minor] Phishing: Small safety check X-Git-Tag: 3.0~506 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6c1217f0eb3764cc9ba393d90ccfc5eafa23f2c5;p=thirdparty%2Frspamd.git [Minor] Phishing: Small safety check --- diff --git a/src/plugins/lua/phishing.lua b/src/plugins/lua/phishing.lua index 86b1d440b5..e7c9a98a77 100644 --- a/src/plugins/lua/phishing.lua +++ b/src/plugins/lua/phishing.lua @@ -186,7 +186,9 @@ local function phishing_cb(task) local dsym = task:get_symbol('DMARC_POLICY_ALLOW') if dsym then dsym = dsym[1] -- legacy stuff, need to take the first element - dmarc_dom = dsym.options[1] + if dsym.options then + dmarc_dom = dsym.options[1] + end end local urls = task:get_urls() or {}