]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Merge remote-tracking branch 'origin/master'
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Sep 2017 19:29:35 +0000 (20:29 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Sep 2017 19:29:35 +0000 (20:29 +0100)
1  2 
src/plugins/lua/antivirus.lua

index 2b072f096b88cd6e349bb722d640a39046777795,652ab03f69dd4846c719429aea3f2fba4fb35e44..d6769071a3a35177865f3ca7872fde6610705c5a
@@@ -759,9 -751,8 +758,10 @@@ local function add_antivirus_rule(sym, 
        opts['type'])
    end
  
-   rule = cfg.configure(opts)
+   local rule = cfg.configure(opts)
 +  rule.type = opts.type
 +
    if not rule then
      rspamd_logger.errx(rspamd_config, 'cannot configure %s for %s',
        opts['type'], opts['symbol'])