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

Freeswitch SVN mikej at freeswitch.org
Fri Oct 20 01:45:53 EDT 2006


Author: mikej
Date: Fri Oct 20 01:45:52 2006
New Revision: 3114

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

Log:
fix segfault?

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	Fri Oct 20 01:45:52 2006
@@ -855,6 +855,10 @@
 	char *at, *resource;
 	char *user;
 
+	if (!s) {
+		return NULL;
+	}
+
 	if (!strchr(s, '/')) {
 		return NULL;
 	}



More information about the Freeswitch-svn mailing list