aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-21 12:39:15 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-21 12:39:30 +0000
commitf75769f242817029e5d8bfa3d617d02aece1729a (patch)
tree69439a3a50adfe84c64b994fea3eb21ed561e04c /src/lua/lua_util.c
parent464e03890c20488ec6bff075ddf28772cd15f422 (diff)
downloadrspamd-f75769f242817029e5d8bfa3d617d02aece1729a.tar.gz
rspamd-f75769f242817029e5d8bfa3d617d02aece1729a.zip
[Minor] Fix tests
Diffstat (limited to 'src/lua/lua_util.c')
-rw-r--r--src/lua/lua_util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c
index b98feb1b2..0e61d6e84 100644
--- a/src/lua/lua_util.c
+++ b/src/lua/lua_util.c
@@ -743,6 +743,11 @@ lua_util_config_from_ucl (lua_State *L)
lua_pushnil (L);
}
else {
+
+ if (int_options & RSPAMD_CONFIG_INIT_LIBS) {
+ cfg->libs_ctx = rspamd_init_libs ();
+ }
+
rspamd_config_post_load (cfg, int_options);
pcfg = lua_newuserdata (L, sizeof (struct rspamd_config *));
rspamd_lua_setclass (L, "rspamd{config}", -1);