Browse code

app_lua: proper jump in the exports array

(cherry picked from commit c62aa0a2ee76f89fdf437f56621137e9f9f65210)

Daniel-Constantin Mierla authored on 07/06/2017 09:08:56
Showing 1 changed files
... ...
@@ -1953,7 +1953,7 @@ void lua_sr_kemi_register_libs(lua_State *L)
1953 1953
 	if(emods_size>1) {
1954 1954
 		for(k=1; k<emods_size; k++) {
1955 1955
 			n++;
1956
-			_sr_crt_KSRMethods += n;
1956
+			_sr_crt_KSRMethods = _sr_KSRMethods + n;
1957 1957
 			snprintf(mname, 128, "KSR.%s", emods[k].kexp[0].mname.s);
1958 1958
 			for(i=0; emods[k].kexp[i].func!=NULL; i++) {
1959 1959
 				LM_DBG("exporting %s.%s(...)\n", mname,