Module: kamailio
Branch: 4.2
Commit: df86f2a9a09339687af5914b85fe8bd8f8f1f575
URL:
https://github.com/kamailio/kamailio/commit/df86f2a9a09339687af5914b85fe8bd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/df86f2a9a09339687af5914b85fe8bd…
Patch:
https://github.com/kamailio/kamailio/commit/df86f2a9a09339687af5914b85fe8bd…
---
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) {