<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/8201">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Corey Farrell: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved
Jenkins2: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_sip.c: Fix crash processing CANCEL.<br><br>Check if initreq data string exists before using it when processing a<br>CANCEL request.<br><br>ASTERISK-27666<br><br>Change-Id: Id1d0f0fa4ec94e81b332b2973d93e5a14bb4cc97<br>---<br>M channels/chan_sip.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/channels/chan_sip.c b/channels/chan_sip.c<br>index d801c63..a24ca81 100644<br>--- a/channels/chan_sip.c<br>+++ b/channels/chan_sip.c<br>@@ -27264,7 +27264,7 @@<br> } else {<br> sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT);<br> }<br>- if (ast_str_strlen(p->initreq.data) > 0) {<br>+ if (p->initreq.data && ast_str_strlen(p->initreq.data) > 0) {<br> struct sip_pkt *pkt, *prev_pkt;<br> /* If the CANCEL we are receiving is a retransmission, and we already have scheduled<br> * a reliable 487, then we don't want to schedule another one on top of the previous<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/8201">change 8201</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/8201"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Id1d0f0fa4ec94e81b332b2973d93e5a14bb4cc97 </div>
<div style="display:none"> Gerrit-Change-Number: 8201 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>