From: Richard Mudgett Date: Wed, 11 Nov 2015 23:20:38 +0000 (-0600) Subject: ast_json_pack(): Use safer json ref mechanism. X-Git-Tag: 15.2.0-rc1~15^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c1e04107449fa8150099dd514d6985a1c39e696;p=thirdparty%2Fasterisk.git ast_json_pack(): Use safer json ref mechanism. Change-Id: I49204db2e57ae96eee43909c18ed007c09ac817e --- diff --git a/main/cel.c b/main/cel.c index cec0a85e49..24a35be7a9 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) {