]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix occasional break
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 20 May 2019 16:49:18 +0000 (17:49 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 20 May 2019 16:49:18 +0000 (17:49 +0100)
src/plugins/lua/multimap.lua

index 620005b81991d697fc82567bf7d67801279da6b0..9ee8f59c266f582dc48a0d6ef321a801419c3a1b 100644 (file)
@@ -529,8 +529,8 @@ local function multimap_callback(task, rule)
     local _,symbol,score = parse_ret(rule, result)
     local forced = false
     if symbol then
-      if r['symbols_set'] then
-        if not r['symbols_set'][symbol] then
+      if rule.symbols_set then
+        if not rule.symbols_set[symbol] then
           rspamd_logger.infox(task, 'symbol %s is not registered for map %s, ' ..
               'replace it with just %s',
               symbol, rule.symbol, rule.symbol)