<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/5913">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Richard Mudgett: Looks good to me, but someone else must approve
  Sean Bright: Looks good to me, approved
  Jenkins2: 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 0ce6474..4e76ac3 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/5913">change 5913</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/5913"/><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-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I7bb2f4987de4046ec52cfc34e5ea0662dae32af8 </div>
<div style="display:none"> Gerrit-Change-Number: 5913 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Torrey Searle <tsearle@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </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>