diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-09-19 21:38:45 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-09-19 21:38:45 +0300 |
commit | 292be5786a83f8f975d55ad7320c8b955e678430 (patch) | |
tree | 9700c2e84371204f128b14a50d1a23adf51931d1 | |
parent | 3392924d2a310d902192bd272544cef4d929e59b (diff) | |
download | rspamd-292be5786a83f8f975d55ad7320c8b955e678430.tar.gz rspamd-292be5786a83f8f975d55ad7320c8b955e678430.zip |
[Fix] mid: handle incorrect rgexps in the map
-rw-r--r-- | src/plugins/lua/mid.lua | 4 |
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 |