[Freeswitch-svn] [commit] r13136 - freeswitch/trunk/src/mod/endpoints/mod_sofia

FreeSWITCH SVN mikej at freeswitch.org
Thu Apr 23 13:05:45 PDT 2009


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);
 		}
 



More information about the Freeswitch-svn mailing list