aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2016-09-19 21:38:45 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2016-09-19 21:38:45 +0300
commit292be5786a83f8f975d55ad7320c8b955e678430 (patch)
tree9700c2e84371204f128b14a50d1a23adf51931d1 /src/plugins/lua
parent3392924d2a310d902192bd272544cef4d929e59b (diff)
downloadrspamd-292be5786a83f8f975d55ad7320c8b955e678430.tar.gz
rspamd-292be5786a83f8f975d55ad7320c8b955e678430.zip
[Fix] mid: handle incorrect rgexps in the map
Diffstat (limited to 'src/plugins/lua')
-rw-r--r--src/plugins/lua/mid.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/lua/mid.lua b/src/plugins/lua/mid.lua
index 79ed35151..5c29f5ab4 100644
--- a/src/plugins/lua/mid.lua
+++ b/src/plugins/lua/mid.lua
@@ -50,11 +50,9 @@ local function known_mid_cb(task)
end
else
re[dkim_domain] = rspamd_regexp.create_cached(v)
- if header then
- if re[dkim_domain]:match(header) then
+ if header and re[dkim_domain] and re[dkim_domain]:match(header) then
task:insert_result(settings['symbol_known_mid'], 1, dkim_domain)
return
- end
end
end
end