Module: kamailio
Branch: master
Commit: af18330c7ed5266079038ca7ae515487537cd6b6
URL:
https://github.com/kamailio/kamailio/commit/af18330c7ed5266079038ca7ae51548…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T17:40:15+01:00
app_ruby: memset rbdata to 0 in app_ruby_run_ex()
---
Modified: src/modules/app_ruby/app_ruby_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/af18330c7ed5266079038ca7ae51548…
Patch:
https://github.com/kamailio/kamailio/commit/af18330c7ed5266079038ca7ae51548…
---
diff --git a/src/modules/app_ruby/app_ruby_api.c b/src/modules/app_ruby/app_ruby_api.c
index dcc645d13c..d084fe4744 100644
--- a/src/modules/app_ruby/app_ruby_api.c
+++ b/src/modules/app_ruby/app_ruby_api.c
@@ -1130,8 +1130,8 @@ int app_ruby_run_ex(sip_msg_t *msg, char *func, char *p1, char *p2,
/* check the script version loaded */
app_ruby_kemi_reload_script();
+ memset(&rbdata, 0, sizeof(ksr_ruby_data_t));
rbdata.robj = rb_mKernel;
- rbdata.nargs = 0;
rbdata.metid = rb_intern(func);
LM_DBG("executing ruby function: [[%s]]\n", func);