From 292be5786a83f8f975d55ad7320c8b955e678430 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Mon, 19 Sep 2016 21:38:45 +0300 Subject: [Fix] mid: handle incorrect rgexps in the map --- src/plugins/lua/mid.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/plugins/lua') 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 -- cgit v1.2.3