diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-21 12:39:15 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-21 12:39:30 +0000 |
commit | f75769f242817029e5d8bfa3d617d02aece1729a (patch) | |
tree | 69439a3a50adfe84c64b994fea3eb21ed561e04c /src/lua/lua_util.c | |
parent | 464e03890c20488ec6bff075ddf28772cd15f422 (diff) | |
download | rspamd-f75769f242817029e5d8bfa3d617d02aece1729a.tar.gz rspamd-f75769f242817029e5d8bfa3d617d02aece1729a.zip |
[Minor] Fix tests
Diffstat (limited to 'src/lua/lua_util.c')
-rw-r--r-- | src/lua/lua_util.c | 5 |
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); |