Module: kamailio
Branch: master
Commit: ea390d69d946314f93bfeeef77b4421f0c04cba3
URL:
https://github.com/kamailio/kamailio/commit/ea390d69d946314f93bfeeef77b4421…
Author: surendratiwari3 <surendratiwari3(a)gmail.com>
Committer: surendratiwari3 <surendratiwari3(a)gmail.com>
Date: 2018-07-12T13:07:09Z
app_lua: fixing bug for setting global table lua
---
Modified: src/modules/app_lua/app_lua_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ea390d69d946314f93bfeeef77b4421…
Patch:
https://github.com/kamailio/kamailio/commit/ea390d69d946314f93bfeeef77b4421…
---
diff --git a/src/modules/app_lua/app_lua_api.c b/src/modules/app_lua/app_lua_api.c
index 7f0fd1fbc0..122c212da3 100644
--- a/src/modules/app_lua/app_lua_api.c
+++ b/src/modules/app_lua/app_lua_api.c
@@ -297,8 +297,8 @@ int lua_sr_init_child(void)
/* set SR lib version */
#if LUA_VERSION_NUM >= 502
- lua_pushstring(_sr_L_env.L, SRVERSION);
- lua_setglobal(_sr_L_env.L, "SRVERSION");
+ lua_pushstring(_sr_L_env.LL, SRVERSION);
+ lua_setglobal(_sr_L_env.LL, "SRVERSION");
#else
lua_pushstring(_sr_L_env.LL, "SRVERSION");
lua_pushstring(_sr_L_env.LL, SRVERSION);