summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2017-12-19 10:23:41 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-12-19 10:23:41 -0600
commit758b321f4cfbb5a5a9aec9b15aeceb20125a13ad (patch)
tree06e9fd57f7b8f28054408f9617f14f00459ebb22
parenta788e2e796272ac7ea8dac0ab2527a263d7c159d (diff)
parentf6393b59afe803c4e6e4199e89046d0665919df9 (diff)
Merge "ast_json_pack(): Use safer json ref mechanism."
-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) {