<p>George Joseph has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/8334">View Change</a></p><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;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/34/8334/1</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/8334">change 8334</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/8334"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 14 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ic2b63f6d4ae617c4c19dcdec2a7a6156b54fd15b </div>
<div style="display:none"> Gerrit-Change-Number: 8334 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>