[commit] r13136 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Author: mikej Date: Thu Apr 23 15:05:45 2009 New Revision: 13136 Log: error checking Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Thu Apr 23 15:05:45 2009 @@ -3998,7 +3998,7 @@ 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); }
participants (1)
-
FreeSWITCH SVN