<p>George Joseph would like Benjamin Keith Ford to <strong>review</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15560">View Change</a></p><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>---<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;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/60/15560/1</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/+/15560">change 15560</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/+/15560"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I1dfc51c5fa586e38579ede4bc228edee213ccaa9 </div>
<div style="display:none"> Gerrit-Change-Number: 15560 </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-MessageType: newchange </div>