proxy.c: fix potential crash in linphone_proxy_config_is_phone_number

This commit is contained in:
Gautier Pelloux-Prayer 2016-04-05 15:21:58 +02:00
parent a0b534b773
commit 1f8eb3317b

View file

@ -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==' ' ||