<p>George Joseph <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/8337">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins2: Verified
  George Joseph: Looks good to me, approved; Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">AST-2018-005: Add a check for NULL tdata in ast_sip_failover_request<br><br>It was discovered that there are some corner cases where a pjsip tsx<br>might have no last_tx so calling ast_sip_failover_request with<br>a NULL last_tx as its tdata would cause a crash.<br><br>ASTERISK-27618<br>Reported By:  Sandro Gauci<br><br>Change-Id: Ic2b63f6d4ae617c4c19dcdec2a7a6156b54fd15b<br>---<br>M res/res_pjsip.c<br>1 file changed, 2 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_pjsip.c b/res/res_pjsip.c<br>index 4392677..60d997a 100644<br>--- a/res/res_pjsip.c<br>+++ b/res/res_pjsip.c<br>@@ -3887,7 +3887,8 @@<br> {<br>    pjsip_via_hdr *via;<br> <br>-       if (!tdata->dest_info.addr.count || (tdata->dest_info.cur_addr == tdata->dest_info.addr.count - 1)) {<br>+       if (!tdata || !tdata->dest_info.addr.count<br>+                || (tdata->dest_info.cur_addr == tdata->dest_info.addr.count - 1)) {<br>            /* No more addresses to try */<br>                return 0;<br>     }<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/8337">change 8337</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/8337"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 14.7 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ic2b63f6d4ae617c4c19dcdec2a7a6156b54fd15b </div>
<div style="display:none"> Gerrit-Change-Number: 8337 </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: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>