summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-13 10:53:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-13 10:53:28 +0100
commit43b2606d44f014b16cc64603068253ee71d05e0c (patch)
tree0ff0796445036283157f22aaec600c2c78d686af
parent0608bcf8db868c9cd308e5e18338b67cef47dd1c (diff)
downloadrspamd-43b2606d44f014b16cc64603068253ee71d05e0c.tar.gz
rspamd-43b2606d44f014b16cc64603068253ee71d05e0c.zip
Try to load all lua modules ignoring failed ones.
-rw-r--r--src/lua/lua_common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c
index 125acfaf0..590717346 100644
--- a/src/lua/lua_common.c
+++ b/src/lua/lua_common.c
@@ -291,7 +291,7 @@ rspamd_init_lua_filters (struct rspamd_config *cfg)
msg_info ("load of %s failed: %s", module->path,
lua_tostring (L, -1));
cur = g_list_next (cur);
- return FALSE;
+ continue;
}
/* Initialize config structure */
@@ -304,14 +304,14 @@ rspamd_init_lua_filters (struct rspamd_config *cfg)
if (lua_pcall (L, 0, LUA_MULTRET, 0) != 0) {
msg_info ("init of %s failed: %s", module->path,
lua_tostring (L, -1));
- return FALSE;
+ cur = g_list_next (cur);
+ continue;
}
if (lua_gettop (L) != 0) {
if (lua_tonumber (L, -1) == -1) {
msg_info (
"%s returned -1 that indicates configuration error",
module->path);
- return FALSE;
}
lua_pop (L, lua_gettop (L));
}