From 1f8eb3317b5c8e32f1138993881157c678ac1b59 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Tue, 5 Apr 2016 15:21:58 +0200 Subject: [PATCH] proxy.c: fix potential crash in linphone_proxy_config_is_phone_number --- coreapi/proxy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coreapi/proxy.c b/coreapi/proxy.c index ef4f47874..343289fa9 100644 --- a/coreapi/proxy.c +++ b/coreapi/proxy.c @@ -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==' ' ||