diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-12-30 17:00:52 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-12-30 17:00:52 +0000 |
commit | 3003f8f75fc3fa01012a9ebd20b0bdd332c938d7 (patch) | |
tree | a63b437cb88a83c0416f3a82aa0e54048e3bb98a /lualib | |
parent | 7e179b064ee6ad77f76fdb125bdb373d215719a9 (diff) | |
download | rspamd-3003f8f75fc3fa01012a9ebd20b0bdd332c938d7.tar.gz rspamd-3003f8f75fc3fa01012a9ebd20b0bdd332c938d7.zip |
[Minor] Add fail-safety for settings post load
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_settings.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lualib/lua_settings.lua b/lualib/lua_settings.lua index 5779cea85..e0fc58b9d 100644 --- a/lualib/lua_settings.lua +++ b/lualib/lua_settings.lua @@ -32,6 +32,10 @@ local lua_util = require "lua_util" local rspamd_logger = require "rspamd_logger" local function register_settings_cb(from_postload) + if not from_postload then + assert(false, 'invalid invocation') + end + if not post_init_performed then all_symbols = rspamd_config:get_symbols() |