Module: kamailio
Branch: master
Commit: c62aa0a2ee76f89fdf437f56621137e9f9f65210
URL:
https://github.com/kamailio/kamailio/commit/c62aa0a2ee76f89fdf437f56621137e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-06-07T11:08:56+02:00
app_lua: proper jump in the exports array
---
Modified: src/modules/app_lua/app_lua_sr.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c62aa0a2ee76f89fdf437f56621137e…
Patch:
https://github.com/kamailio/kamailio/commit/c62aa0a2ee76f89fdf437f56621137e…
---
diff --git a/src/modules/app_lua/app_lua_sr.c b/src/modules/app_lua/app_lua_sr.c
index 3b18ff57b0..d23ddaca70 100644
--- a/src/modules/app_lua/app_lua_sr.c
+++ b/src/modules/app_lua/app_lua_sr.c
@@ -1953,7 +1953,7 @@ void lua_sr_kemi_register_libs(lua_State *L)
if(emods_size>1) {
for(k=1; k<emods_size; k++) {
n++;
- _sr_crt_KSRMethods += n;
+ _sr_crt_KSRMethods = _sr_KSRMethods + n;
snprintf(mname, 128, "KSR.%s", emods[k].kexp[0].mname.s);
for(i=0; emods[k].kexp[i].func!=NULL; i++) {
LM_DBG("exporting %s.%s(...)\n", mname,