make sure sip->sip_request->rq_url->url_user exists before you strncmp on it.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11589 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
9640d2aa28
commit
ea4a269d53
|
@ -103,7 +103,7 @@ void sofia_handle_sip_i_notify(switch_core_session_t *session, int status,
|
|||
*/
|
||||
if (profile->manage_shared_appearance) {
|
||||
|
||||
if (!strncmp(sip->sip_request->rq_url->url_user, "sla-agent", sizeof("sla-agent"))) {
|
||||
if (sip->sip_request->rq_url->url_user && !strncmp(sip->sip_request->rq_url->url_user, "sla-agent", sizeof("sla-agent"))) {
|
||||
int sub_state;
|
||||
tl_gets(tags, NUTAG_SUBSTATE_REF(sub_state), TAG_END());
|
||||
|
||||
|
|
Loading…
Reference in New Issue