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

Freeswitch SVN mikej at freeswitch.org
Mon Jan 15 17:12:15 EST 2007


Author: mikej
Date: Mon Jan 15 17:12:15 2007
New Revision: 3968

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c

Log:
fix seg with register w/ no contact.

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Mon Jan 15 17:12:15 2007
@@ -2959,7 +2959,7 @@
 	char *rpid = "unknown";
 	const char *display = "\"user\"";
 
-	if (contact) {
+	if (contact && contact->m_url) {
 		char *port = (char *) contact->m_url->url_port;
 		display = contact->m_display;
 
@@ -2989,7 +2989,7 @@
 	
 	if (expires) {
 		exptime = expires->ex_delta;
-	} else if (contact->m_expires) {
+	} else if (contact && contact->m_expires) {
 		exptime = atol(contact->m_expires);
 	} 
 



More information about the Freeswitch-svn mailing list