<p>Joshua Elson has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/8135">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_mwi: Fix null pointer crash<br><br>ASTERISK-27652 #close<br><br>Change-Id: I78a0d38bfd8d0d82830f3d53da04872d6b67284d<br>---<br>M res/res_pjsip_mwi.c<br>1 file changed, 1 insertion(+), 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/35/8135/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_pjsip_mwi.c b/res/res_pjsip_mwi.c<br>index 90fdc09..3e94c5d 100644<br>--- a/res/res_pjsip_mwi.c<br>+++ b/res/res_pjsip_mwi.c<br>@@ -650,7 +650,7 @@<br>           .body_type = AST_SIP_MESSAGE_ACCUMULATOR,<br>             .body_data = &counter,<br>    };<br>-   const char *resource = ast_sip_subscription_get_resource_name(sub->sip_sub);<br>+      const char *resource = sub->is_solicited ? ast_sip_subscription_get_resource_name(sub->sip_sub) : NULL; <br> <br>     ao2_callback(sub->stasis_subs, OBJ_NODATA, get_message_count, &counter);<br> <br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/8135">change 8135</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/8135"/><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: I78a0d38bfd8d0d82830f3d53da04872d6b67284d </div>
<div style="display:none"> Gerrit-Change-Number: 8135 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Elson <joshelson@gmail.com> </div>