Module: kamailio
Branch: 5.3
Commit: 2e8d629a7722cbecae543a7e4a9d0174a16fbc16
URL:
https://github.com/kamailio/kamailio/commit/2e8d629a7722cbecae543a7e4a9d017…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-09T09:59:48+01:00
app_ruby: memset rbdata to 0 in app_ruby_run_ex()
(cherry picked from commit af18330c7ed5266079038ca7ae515487537cd6b6)
---
Modified: src/modules/app_ruby/app_ruby_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2e8d629a7722cbecae543a7e4a9d017…
Patch:
https://github.com/kamailio/kamailio/commit/2e8d629a7722cbecae543a7e4a9d017…
---
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);