mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-02 11:19:30 +00:00
Fix crash when normalizing null address
This commit is contained in:
parent
b817243bbd
commit
153c3f9fea
1 changed files with 6 additions and 4 deletions
|
|
@ -483,10 +483,12 @@
|
|||
}
|
||||
|
||||
// since user wants to escape plus, we assume it expects to have phone numbers by default
|
||||
if (addr && cfg && (linphone_proxy_config_get_dial_escape_plus(cfg))) {
|
||||
linphone_address_set_username(addr, normvalue);
|
||||
} else {
|
||||
linphone_address_set_username(addr, value.UTF8String);
|
||||
if (addr) {
|
||||
if (cfg && (linphone_proxy_config_get_dial_escape_plus(cfg))) {
|
||||
linphone_address_set_username(addr, normvalue);
|
||||
} else {
|
||||
linphone_address_set_username(addr, value.UTF8String);
|
||||
}
|
||||
}
|
||||
|
||||
return addr;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue