error checking
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13136 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
01511a3592
commit
1f6f250419
|
@ -3998,7 +3998,7 @@ void sofia_handle_sip_i_info(nua_t *nua, sofia_profile_t *profile, nua_handle_t
|
|||
|
||||
if (switch_event_create(&event, SWITCH_EVENT_RECV_INFO) == SWITCH_STATUS_SUCCESS) {
|
||||
|
||||
if (sip->sip_content_type) {
|
||||
if (sip && sip->sip_content_type) {
|
||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "SIP-Content-Type", sip->sip_content_type->c_type);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue