r11116 - prelude-correlator/trunk/plugins/lua

[email protected]
Newsgroups gmane.comp.security.ids.prelude.cvs
Message-ID <[email protected]>
Author: yoann
Date: 2009-04-06 13:41:54 +0200 (Mon, 06 Apr 2009)
New Revision: 11116

Modified:
   prelude-correlator/trunk/plugins/lua/lua.c
Log:
Do not stop loading if a given Lua ruleset fail.

Modified: prelude-correlator/trunk/plugins/lua/lua.c
===================================================================
--- prelude-correlator/trunk/plugins/lua/lua.c	2009-04-06 10:49:32 UTC (rev 11115)
+++ prelude-correlator/trunk/plugins/lua/lua.c	2009-04-06 11:41:54 UTC (rev 11116)
@@ -183,8 +183,8 @@
 
                 ret = luaL_dofile(plugin->lstate, fname);
                 if ( ret != 0 ) {
-                        prelude_log(PRELUDE_LOG_ERR, "LUA error: %s.\n", lua_tostring(plugin->lstate, -1));
-                        return -1;
+                        prelude_log(PRELUDE_LOG_ERR, "%s: %s.\n", fname, lua_tostring(plugin->lstate, -1));
+                        continue;
                 }
 
                 ret = lua_pcall(plugin->lstate, 0, 0, 0);

_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.