diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-04-12 16:55:26 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-04-12 16:55:26 +0100 |
commit | 6c1217f0eb3764cc9ba393d90ccfc5eafa23f2c5 (patch) | |
tree | 8a394369321fe20d1ae65beb84ff3003b0c47c71 /src/plugins | |
parent | 78a0cb71867a61124c09e60a843e1339d303e3a4 (diff) | |
download | rspamd-6c1217f0eb3764cc9ba393d90ccfc5eafa23f2c5.tar.gz rspamd-6c1217f0eb3764cc9ba393d90ccfc5eafa23f2c5.zip |
[Minor] Phishing: Small safety check
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/phishing.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/lua/phishing.lua b/src/plugins/lua/phishing.lua index 86b1d440b..e7c9a98a7 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 {} |