<p>Richard Mudgett has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7636">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ast_json_pack(): Use safer json ref mechanism.<br><br>Change-Id: I49204db2e57ae96eee43909c18ed007c09ac817e<br>---<br>M main/cel.c<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/36/7636/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/cel.c b/main/cel.c<br>index cec0a85..24a35be 100644<br>--- a/main/cel.c<br>+++ b/main/cel.c<br>@@ -1835,9 +1835,9 @@<br>         struct ast_json *cel_blob;<br>    struct stasis_message *message;<br> <br>-   cel_blob = ast_json_pack("{s: i, s: O}",<br>+   cel_blob = ast_json_pack("{s: i, s: o}",<br>            "event_type", event_type,<br>-          "event_details", blob);<br>+            "event_details", ast_json_ref(blob));<br> <br>    message = ast_channel_blob_create_from_cache(ast_channel_uniqueid(chan), cel_generic_type(), cel_blob);<br>       if (message) {<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7636">change 7636</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/7636"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I49204db2e57ae96eee43909c18ed007c09ac817e </div>
<div style="display:none"> Gerrit-Change-Number: 7636 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>