fix segfault?

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3114 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2006-10-20 05:45:52 +00:00
parent eaf4409b45
commit e70a025a88

View File

@ -855,6 +855,10 @@ char *encode_name(char *s)
char *at, *resource;
char *user;
if (!s) {
return NULL;
}
if (!strchr(s, '/')) {
return NULL;
}