From: Alexander Moisseev Date: Mon, 19 Sep 2016 18:38:45 +0000 (+0300) Subject: [Fix] mid: handle incorrect rgexps in the map X-Git-Tag: 1.4.0~407^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=292be5786a83f8f975d55ad7320c8b955e678430;p=rspamd.git [Fix] mid: handle incorrect rgexps in the map --- 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