Module: sip-router
Branch: 3.2
Commit: bee0949e6d20d66cae3d3ea9795654a4ee30282c
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=bee0949…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Jan 5 12:14:52 2012 +0100
app_lua: don't start if a Lua API registered module is not found
(cherry picked from commit 8b56ce5162f480a11d0b59a5de9a7c37e9e84d1b)
---
modules/app_lua/app_lua_mod.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/app_lua/app_lua_mod.c b/modules/app_lua/app_lua_mod.c
index f9e1a69..19a0c52 100644
--- a/modules/app_lua/app_lua_mod.c
+++ b/modules/app_lua/app_lua_mod.c
@@ -106,7 +106,8 @@ struct module_exports exports = {
*/
static int mod_init(void)
{
- lua_sr_init_mod();
+ if(lua_sr_init_mod()<0)
+ return -1;
return 0;
}