mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
fix(Proxy): check contact address validity in guess_contact_for_register
This commit is contained in:
parent
5ab35788a4
commit
6add595c90
1 changed files with 6 additions and 2 deletions
|
|
@ -439,10 +439,14 @@ void linphone_proxy_config_stop_refreshing(LinphoneProxyConfig * cfg){
|
|||
}
|
||||
|
||||
static void guess_contact_for_register (LinphoneProxyConfig *cfg) {
|
||||
linphone_address_unref(cfg->contact_address);
|
||||
if (cfg->contact_address)
|
||||
linphone_address_unref(cfg->contact_address);
|
||||
cfg->contact_address = nullptr;
|
||||
linphone_address_unref(cfg->contact_address_without_params);
|
||||
|
||||
if (cfg->contact_address_without_params)
|
||||
linphone_address_unref(cfg->contact_address_without_params);
|
||||
cfg->contact_address_without_params = nullptr;
|
||||
|
||||
LinphoneAddress *proxy = linphone_address_new(cfg->reg_proxy);
|
||||
if (!proxy)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue