commit 96ae0fe: [Fix] Process orphaned `symbols` section

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Feb 18 15:49:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-02-18 15:42:26 +0000
URL: https://github.com/rspamd/rspamd/commit/96ae0fe1867bc3c9ba5ea752bd93bd1b3632fa79

[Fix] Process orphaned `symbols` section

---
 lualib/lua_cfg_transform.lua | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lualib/lua_cfg_transform.lua b/lualib/lua_cfg_transform.lua
index 8a61dcd29..ae05eed59 100644
--- a/lualib/lua_cfg_transform.lua
+++ b/lualib/lua_cfg_transform.lua
@@ -242,6 +242,12 @@ return function(cfg)
     ret = true
   end
 
+  if cfg.symbols then
+    for k, v in metric_pairs(cfg.symbols) do
+      symbol_transform(cfg, k, v)
+    end
+  end
+
   check_statistics_sanity()
 
   if not cfg.actions then


More information about the Commits mailing list