<p>George Joseph has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6541">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_pubsub:  Check for Content-Type header in rx_notify_request<br><br>pubsub_on_rx_notify_request wasn't checking for a null<br>Content-Type header before checking that it was<br>application/simple-message-summary.<br><br>ASTERISK-27279<br>Reported by: Ross Beer<br><br>Change-Id: Iec2a6c4d2e74af37ff779ecc9fd35644c5c4ea52<br>---<br>M res/res_pjsip_pubsub.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/41/6541/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c<br>index 81b25ac..984c028 100644<br>--- a/res/res_pjsip_pubsub.c<br>+++ b/res/res_pjsip_pubsub.c<br>@@ -3526,7 +3526,8 @@<br> <br> static pj_bool_t pubsub_on_rx_notify_request(pjsip_rx_data *rdata)<br> {<br>-      if (pj_stricmp2(&rdata->msg_info.msg->body->content_type.type, "application") == 0 &&<br>+ if (&rdata->msg_info.msg->body->content_type &&<br>+         pj_stricmp2(&rdata->msg_info.msg->body->content_type.type, "application") == 0 &&<br>              pj_stricmp2(&rdata->msg_info.msg->body->content_type.subtype, "simple-message-summary") == 0) {<br>                return pubsub_on_rx_mwi_notify_request(rdata);<br>        }<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6541">change 6541</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/6541"/><meta itemprop="name" content="View Change"/></div></div>

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