Module: kamailio
Branch: master
Commit: 7116d1c10e4f3224874ea689c209f1d2974806ce
URL:
https://github.com/kamailio/kamailio/commit/7116d1c10e4f3224874ea689c209f1d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-06-07T11:16:41+02:00
app_python: proper jump in the exports array
---
Modified: src/modules/app_python/apy_kemi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7116d1c10e4f3224874ea689c209f1d…
Patch:
https://github.com/kamailio/kamailio/commit/7116d1c10e4f3224874ea689c209f1d…
---
diff --git a/src/modules/app_python/apy_kemi.c b/src/modules/app_python/apy_kemi.c
index 37bb4b1f1f..0dd71c3448 100644
--- a/src/modules/app_python/apy_kemi.c
+++ b/src/modules/app_python/apy_kemi.c
@@ -986,7 +986,7 @@ int sr_apy_init_ksr(void)
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,