<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/5914">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Richard Mudgett: Looks good to me, but someone else must approve
Jenkins2: Verified
Sean Bright: Looks good to me, approved
Joshua Colp: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res/res_pjsip_t38: fix incorrect increment of media_count<br><br>The T38 sdp callback incorrectly has a side effect of incrementing<br>the media_count. This can lead to core dumps.<br><br>Change-Id: I7bb2f4987de4046ec52cfc34e5ea0662dae32af8<br>---<br>M res/res_pjsip_t38.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_pjsip_t38.c b/res/res_pjsip_t38.c<br>index 7643492..3028d35 100644<br>--- a/res/res_pjsip_t38.c<br>+++ b/res/res_pjsip_t38.c<br>@@ -278,7 +278,7 @@<br> /* Move the image media stream to the front and have it as the only stream, pjmedia will fill in<br> * dummy streams for the rest<br> */<br>- for (stream = 0; stream < sdp->media_count++; ++stream) {<br>+ for (stream = 0; stream < sdp->media_count; ++stream) {<br> if (!pj_strcmp2(&sdp->media[stream]->desc.media, "image")) {<br> sdp->media[0] = sdp->media[stream];<br> sdp->media_count = 1;<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/5914">change 5914</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/5914"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 14 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I7bb2f4987de4046ec52cfc34e5ea0662dae32af8 </div>
<div style="display:none"> Gerrit-Change-Number: 5914 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Torrey Searle <tsearle@gmail.com> </div>