<p>Christian Savinovich has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/11512">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_dahdi.c: crash in chan_dahdi<br><br>Fixes a crash in chan_dahdi occurring on 32-bit systems. A previous<br>patch introduced a variable of type unassigned long long which is 64-bits.<br>Casting it as 'ast_json_int_t' along with JSON type 'I' makes it work<br>with 32-bit systems.<br><br>ASTERISK-28457<br><br>Change-Id: I9cef6b5f2d826fc5c93f2f6a1c997c4e3e6c93fe<br>---<br>M channels/chan_dahdi.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/12/11512/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c</span><br><span>index 8b70447..1f83f02 100644</span><br><span>--- a/channels/chan_dahdi.c</span><br><span>+++ b/channels/chan_dahdi.c</span><br><span>@@ -1849,8 +1849,8 @@</span><br><span> </span><br><span>    ast_assert(dahdi_channel != NULL);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-  blob = ast_json_pack("{s: i, s: i, s: s}",</span><br><span style="color: hsl(0, 100%, 40%);">-            "group", group,</span><br><span style="color: hsl(120, 100%, 40%);">+     blob = ast_json_pack("{s: I, s: i, s: s}",</span><br><span style="color: hsl(120, 100%, 40%);">+          "group", (ast_json_int_t)group,</span><br><span>            "span", span,</span><br><span>              "channel", dahdi_channel);</span><br><span>         if (!blob) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/11512">change 11512</a>. To unsubscribe, or for help writing mail filters, 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/c/asterisk/+/11512"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-Change-Id: I9cef6b5f2d826fc5c93f2f6a1c997c4e3e6c93fe </div>
<div style="display:none"> Gerrit-Change-Number: 11512 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Christian Savinovich <csavinovich@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>