mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-29 10:01:41 +00:00
fix segfault?
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3114 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
eaf4409b45
commit
e70a025a88
@ -855,6 +855,10 @@ char *encode_name(char *s)
|
|||||||
char *at, *resource;
|
char *at, *resource;
|
||||||
char *user;
|
char *user;
|
||||||
|
|
||||||
|
if (!s) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (!strchr(s, '/')) {
|
if (!strchr(s, '/')) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user