[sr-dev] git:4.2:df86f2a9: jsonrpc-s: reset response body after linking it to $jsonrpl() variable

Daniel-Constantin Mierla miconda at gmail.com
Thu Mar 12 15:19:43 CET 2015


Module: kamailio
Branch: 4.2
Commit: df86f2a9a09339687af5914b85fe8bd8f8f1f575
URL: https://github.com/kamailio/kamailio/commit/df86f2a9a09339687af5914b85fe8bd8f8f1f575

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-03-12T15:18:58+01:00

jsonrpc-s: reset response body after linking it to $jsonrpl() variable

---

Modified: modules/jsonrpc-s/jsonrpc-s_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/df86f2a9a09339687af5914b85fe8bd8f8f1f575.diff
Patch: https://github.com/kamailio/kamailio/commit/df86f2a9a09339687af5914b85fe8bd8f8f1f575.patch

---

diff --git a/modules/jsonrpc-s/jsonrpc-s_mod.c b/modules/jsonrpc-s/jsonrpc-s_mod.c
index 2946288..c1018c4 100644
--- a/modules/jsonrpc-s/jsonrpc-s_mod.c
+++ b/modules/jsonrpc-s/jsonrpc-s_mod.c
@@ -317,6 +317,7 @@ static int jsonrpc_send(jsonrpc_ctx_t* ctx)
 		} else {
 			jsonrpc_set_plain_reply(ctx->http_code, &ctx->http_text, &rbuf,
 					ctx->jrpl->free_fn);
+			rbuf.s = NULL;
 		}
 	} else {
 		if(ctx->msg) {




More information about the sr-dev mailing list