diff options
Diffstat (limited to 'src/plugins/lua/mid.lua')
-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 |