mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
proxy.c: fix potential crash in linphone_proxy_config_is_phone_number
This commit is contained in:
parent
a0b534b773
commit
1f8eb3317b
1 changed files with 1 additions and 0 deletions
|
|
@ -858,6 +858,7 @@ static bool_t lookup_dial_plan_by_ccc(const char *ccc, dial_plan_t *plan){
|
|||
|
||||
bool_t linphone_proxy_config_is_phone_number(LinphoneProxyConfig *proxy, const char *username){
|
||||
const char *p;
|
||||
if (!username) return FALSE;
|
||||
for(p=username;*p!='\0';++p){
|
||||
if (isdigit(*p) ||
|
||||
*p==' ' ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue