git:master:c62aa0a2: app_lua: proper jump in the exports array

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

git:master:c62aa0a2: app_lua: proper jump in the exports array

Daniel-Constantin Mierla-6
Module: kamailio
Branch: master
Commit: c62aa0a2ee76f89fdf437f56621137e9f9f65210
URL: https://github.com/kamailio/kamailio/commit/c62aa0a2ee76f89fdf437f56621137e9f9f65210

Author: Daniel-Constantin Mierla <[hidden email]>
Committer: Daniel-Constantin Mierla <[hidden email]>
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/c62aa0a2ee76f89fdf437f56621137e9f9f65210.diff
Patch: https://github.com/kamailio/kamailio/commit/c62aa0a2ee76f89fdf437f56621137e9f9f65210.patch

---

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,


_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Loading...