Commit 5e8c64cf authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer Committed by Ghislain MARY
Browse files

proxy.c: fix crash in linphone_proxy_config_set_identity_address when addr is invalid

parent cbf59bc7
......@@ -228,8 +228,8 @@ int linphone_proxy_config_set_server_addr(LinphoneProxyConfig *cfg, const char *
int linphone_proxy_config_set_identity_address(LinphoneProxyConfig *cfg, const LinphoneAddress *addr){
if (!addr || linphone_address_get_username(addr)==NULL){
char* as_string = linphone_address_as_string(addr);
ms_warning("Invalid sip identity: %s", addr?as_string:"NULL");
char* as_string = addr ? linphone_address_as_string(addr) : ms_strdup("NULL");
ms_warning("Invalid sip identity: %s", as_string);
return -1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment