commit d32a22c: [Minor] One more sanity check

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Aug 16 12:00:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-08-16 12:56:37 +0100
URL: https://github.com/rspamd/rspamd/commit/d32a22c106dc484bae439f12f418034f19290a96 (HEAD -> master)

[Minor] One more sanity check

---
 lualib/lua_cfg_transform.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lualib/lua_cfg_transform.lua b/lualib/lua_cfg_transform.lua
index af9ae6cc2..43d4a2929 100644
--- a/lualib/lua_cfg_transform.lua
+++ b/lualib/lua_cfg_transform.lua
@@ -384,7 +384,7 @@ return function(cfg)
         }
       }
 
-      if cfg.symbols['IP_SCORE'] then
+      if cfg.symbols and cfg.symbols['IP_SCORE'] then
         local t = cfg.symbols['IP_SCORE']
 
         if not cfg.symbols['SENDER_REP_SPAM'] then


More information about the Commits mailing list