<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/7097">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Joshua Colp: Looks good to me, but someone else must approve
  Richard Mudgett: Looks good to me, but someone else must approve
  Matthew Fredrickson: Looks good to me, approved
  Jenkins2: Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip:  Avoid crash when contact uri is empty string<br><br>Asterisk will crash if contact uri is invalid, so contact_apply_handler<br>should check if the uri is NULL or empty.<br><br>ASTERISK-27393 #close<br>Reported-by: Aaron An<br>Tested-by: AaronAn<br><br>Change-Id: Ia0309bdc6b697c73c9c736e1caec910b77ca69f5<br>---<br>M res/res_pjsip/location.c<br>1 file changed, 5 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_pjsip/location.c b/res/res_pjsip/location.c<br>index 9945c7c..0d7b3da 100644<br>--- a/res/res_pjsip/location.c<br>+++ b/res/res_pjsip/location.c<br>@@ -1219,6 +1219,11 @@<br>   struct ast_sip_contact_status *status;<br>        struct ast_sip_contact *contact = object;<br> <br>+ if (ast_strlen_zero(contact->uri)) {<br>+              ast_log(LOG_ERROR, "A URI on dynamic contact '%s' is empty\n",<br>+                     ast_sorcery_object_get_id(contact));<br>+         return -1;<br>+   }<br>     status = ast_res_pjsip_find_or_create_contact_status(contact);<br>        ao2_cleanup(status);<br> <br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7097">change 7097</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/7097"/><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: Ia0309bdc6b697c73c9c736e1caec910b77ca69f5 </div>
<div style="display:none"> Gerrit-Change-Number: 7097 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Aaron An <anjb@ti-net.com.cn> </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>
<div style="display:none"> Gerrit-Reviewer: Matthew Fredrickson <creslin@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>