aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-12-30 17:00:52 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-12-30 17:00:52 +0000
commit3003f8f75fc3fa01012a9ebd20b0bdd332c938d7 (patch)
treea63b437cb88a83c0416f3a82aa0e54048e3bb98a /lualib
parent7e179b064ee6ad77f76fdb125bdb373d215719a9 (diff)
downloadrspamd-3003f8f75fc3fa01012a9ebd20b0bdd332c938d7.tar.gz
rspamd-3003f8f75fc3fa01012a9ebd20b0bdd332c938d7.zip
[Minor] Add fail-safety for settings post load
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_settings.lua4
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()