<p>Richard Mudgett <strong>uploaded patch set #5</strong> to the change originally created by Abhay Gupta.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/11444">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_pjsip.c: Check for channel and session to not be NULL in hangup<br><br>We have seen some rare case of segmentation fault in hangup function<br>and we could notice that channel pointer was NULL.  Debug log shows<br>that there is a 200 OK answer and SIP timeout at the same time.  It<br>looks that while the SIP session was being destroyed due to timeout<br>call hangup due to answer event lead to race condition and channel<br>is being destroyed from two different places.  The check ensures we<br>check it not to be NULL before freeing it.<br><br>ASTERISK-25371<br><br>Change-Id: I19f6566830640625e08f7b87bfe15758ad33a778<br>---<br>M channels/chan_pjsip.c<br>1 file changed, 19 insertions(+), 10 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/44/11444/5</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/11444">change 11444</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/+/11444"/><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: I19f6566830640625e08f7b87bfe15758ad33a778 </div>
<div style="display:none"> Gerrit-Change-Number: 11444 </div>
<div style="display:none"> Gerrit-PatchSet: 5 </div>
<div style="display:none"> Gerrit-Owner: Abhay Gupta <abhay@avissol.com> </div>
<div style="display:none"> Gerrit-Reviewer: Benjamin Keith Ford <bford@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>