<p>George Joseph <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15566">View Change</a></p><div style="white-space:pre-wrap">Approvals:
George Joseph: Looks good to me, approved; Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">AST-2021-006 - res_pjsip_t38.c: Check for session_media on reinvite.<br><br>When Asterisk sends a reinvite negotiating T38 faxing, it's possible a<br>crash can occur if the response contains a m=image and zero port. The<br>reinvite callback code now checks session_media to see if it is null or<br>not before trying to access the udptl variable on it.<br><br>ASTERISK-29305<br><br>Change-Id: I1dfc51c5fa586e38579ede4bc228edee213ccaa9<br>(cherry picked from commit 17f177ce06d55b29b0f27868d8348c40c77cba41)<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;"><span>diff --git a/res/res_pjsip_t38.c b/res/res_pjsip_t38.c</span><br><span>index 63abce5..5d7f68d 100644</span><br><span>--- a/res/res_pjsip_t38.c</span><br><span>+++ b/res/res_pjsip_t38.c</span><br><span>@@ -325,7 +325,7 @@</span><br><span> * If there is a session_media object, but no udptl object available</span><br><span> * then it's assumed the stream was declined.</span><br><span> */</span><br><span style="color: hsl(0, 100%, 40%);">- if (!session_media->udptl) {</span><br><span style="color: hsl(120, 100%, 40%);">+ if (session_media && !session_media->udptl) {</span><br><span> session_media = NULL;</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15566">change 15566</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/+/15566"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 17.9 </div>
<div style="display:none"> Gerrit-Change-Id: I1dfc51c5fa586e38579ede4bc228edee213ccaa9 </div>
<div style="display:none"> Gerrit-Change-Number: 15566 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Benjamin Keith Ford <bford@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-CC: Friendly Automation </div>
<div style="display:none"> Gerrit-MessageType: merged </div>