20 Oct
2006
20 Oct
'06
5:45 a.m.
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; }