summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2015-11-11 17:20:38 -0600
committerRichard Mudgett <rmudgett@digium.com>2017-12-18 18:05:29 -0600
commitf6393b59afe803c4e6e4199e89046d0665919df9 (patch)
treea7f5df6f0c338413fce65d83ac17c54b7d484951
parent11a1e07ad291df072bccc9896f4d90efd056c1f8 (diff)
ast_json_pack(): Use safer json ref mechanism.
Change-Id: I49204db2e57ae96eee43909c18ed007c09ac817e
-rw-r--r--main/cel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/cel.c b/main/cel.c
index cec0a85e4..24a35be7a 100644
--- a/main/cel.c
+++ b/main/cel.c
@@ -1835,9 +1835,9 @@ void ast_cel_publish_event(struct ast_channel *chan,
struct ast_json *cel_blob;
struct stasis_message *message;
- cel_blob = ast_json_pack("{s: i, s: O}",
+ cel_blob = ast_json_pack("{s: i, s: o}",
"event_type", event_type,
- "event_details", blob);
+ "event_details", ast_json_ref(blob));
message = ast_channel_blob_create_from_cache(ast_channel_uniqueid(chan), cel_generic_type(), cel_blob);
if (message) {