Browse code

app_python: proper jump in the exports array

(cherry picked from commit 7116d1c10e4f3224874ea689c209f1d2974806ce)

Daniel-Constantin Mierla authored on 07/06/2017 09:16:41
Showing 1 changed files
... ...
@@ -986,7 +986,7 @@ int sr_apy_init_ksr(void)
986 986
 	if(emods_size>1) {
987 987
 		for(k=1; k<emods_size; k++) {
988 988
 			n++;
989
-			_sr_crt_KSRMethods += n;
989
+			_sr_crt_KSRMethods = _sr_KSRMethods + n;
990 990
 			snprintf(mname, 128, "KSR.%s", emods[k].kexp[0].mname.s);
991 991
 			for(i=0; emods[k].kexp[i].func!=NULL; i++) {
992 992
 				LM_DBG("exporting %s.%s(...)\n", mname,