Module: kamailio
Branch: master
Commit: 054812952fa9e006b39d604535833c18f4fdada5
URL:
https://github.com/kamailio/kamailio/commit/054812952fa9e006b39d604535833c1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-01-30T13:15:00+01:00
jsonrpc: init len variable to avoid invalid usage
---
Modified: src/modules/jsonrpcs/jsonrpcs_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/054812952fa9e006b39d604535833c1…
Patch:
https://github.com/kamailio/kamailio/commit/054812952fa9e006b39d604535833c1…
---
diff --git a/src/modules/jsonrpcs/jsonrpcs_mod.c b/src/modules/jsonrpcs/jsonrpcs_mod.c
index c641d0a..f44fb9e 100644
--- a/src/modules/jsonrpcs/jsonrpcs_mod.c
+++ b/src/modules/jsonrpcs/jsonrpcs_mod.c
@@ -951,6 +951,7 @@ static struct rpc_delayed_ctx* jsonrpc_delayed_ctx_new(jsonrpc_ctx_t*
ctx)
ret=0;
shm_msg=0;
+ len = 0;
if (ctx->reply_sent) {
LM_ERR("response already sent - cannot create a delayed context\n");