Module: kamailio
Branch: master
Commit: 710118e55999198d1282f18ea7ef37de4a50e5f5
URL:
https://github.com/kamailio/kamailio/commit/710118e55999198d1282f18ea7ef37d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-04-14T13:15:15+02:00
app_lua: reset the values for api parameters
---
Modified: modules/app_lua/app_lua_sr.c
---
Diff:
https://github.com/kamailio/kamailio/commit/710118e55999198d1282f18ea7ef37d…
Patch:
https://github.com/kamailio/kamailio/commit/710118e55999198d1282f18ea7ef37d…
---
diff --git a/modules/app_lua/app_lua_sr.c b/modules/app_lua/app_lua_sr.c
index b7bb39c..63edd5b 100644
--- a/modules/app_lua/app_lua_sr.c
+++ b/modules/app_lua/app_lua_sr.c
@@ -1478,6 +1478,7 @@ int sr_kemi_exec_func(lua_State* L, str *mname, int midx, str
*fname)
return app_lua_return_false(L);
}
+ memset(vps, 0, SR_KEMI_PARAMS_MAX*sizeof(sr_kemi_val_t));
for(i=0; i<SR_KEMI_PARAMS_MAX; i++) {
if(ket->ptypes[i]==SR_KEMIP_NONE) {
break;