<p>Josh Soref has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/16878">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">spelling: digress<br><br>Change-Id: I88891b3c2a21ba532c8fda722e986607ac136ce0<br>---<br>M channels/chan_iax2.c<br>1 file changed, 3 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/78/16878/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c</span><br><span>index 80c0c8b..3a1451c 100644</span><br><span>--- a/channels/chan_iax2.c</span><br><span>+++ b/channels/chan_iax2.c</span><br><span>@@ -8404,18 +8404,18 @@</span><br><span> if ((authmethods & IAX_AUTH_MD5) && !ast_strlen_zero(challenge)) {</span><br><span> struct MD5Context md5;</span><br><span> unsigned char digest[16];</span><br><span style="color: hsl(0, 100%, 40%);">- char digres[128];</span><br><span style="color: hsl(120, 100%, 40%);">+ char digress[128];</span><br><span> MD5Init(&md5);</span><br><span> MD5Update(&md5, (unsigned char *)challenge, strlen(challenge));</span><br><span> MD5Update(&md5, (unsigned char *)secret, strlen(secret));</span><br><span> MD5Final(digest, &md5);</span><br><span> /* If they support md5, authenticate with it. */</span><br><span> for (x=0;x<16;x++)</span><br><span style="color: hsl(0, 100%, 40%);">- sprintf(digres + (x << 1), "%02hhx", digest[x]); /* safe */</span><br><span style="color: hsl(120, 100%, 40%);">+ sprintf(digress + (x << 1), "%02hhx", digest[x]); /* safe */</span><br><span> if (pvt) {</span><br><span> build_encryption_keys(digest, pvt);</span><br><span> }</span><br><span style="color: hsl(0, 100%, 40%);">- iax_ie_append_str(ied, IAX_IE_MD5_RESULT, digres);</span><br><span style="color: hsl(120, 100%, 40%);">+ iax_ie_append_str(ied, IAX_IE_MD5_RESULT, digress);</span><br><span> res = 0;</span><br><span> } else if (authmethods & IAX_AUTH_PLAINTEXT) {</span><br><span> iax_ie_append_str(ied, IAX_IE_PASSWORD, secret);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/16878">change 16878</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/+/16878"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I88891b3c2a21ba532c8fda722e986607ac136ce0 </div>
<div style="display:none"> Gerrit-Change-Number: 16878 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Josh Soref <jsoref@gmail.com> </div>
<div style="display:none"> Gerrit-CC: Friendly Automation </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>