mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
proxy guess contact return NULL in case of bad contact params
This commit is contained in:
parent
dd6f6daf7f
commit
a961125860
1 changed files with 5 additions and 0 deletions
|
|
@ -285,6 +285,11 @@ LinphoneAddress *guess_contact_for_register(LinphoneProxyConfig *obj){
|
|||
|
||||
linphone_address_destroy(contact);
|
||||
contact=linphone_address_new(tmp);
|
||||
if (!contact) {
|
||||
ms_error("No valid contact_params for [%p]",linphone_address_get_domain(proxy));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef BUILD_UPNP
|
||||
if (obj->lc->upnp != NULL && linphone_core_get_firewall_policy(obj->lc)==LinphonePolicyUseUpnp &&
|
||||
linphone_upnp_context_get_state(obj->lc->upnp) == LinphoneUpnpStateOk) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue