mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 11:38:08 +00:00
fix crash in linphone_core_get_nat_address_resolved() when nat_address is null
This commit is contained in:
parent
ee2f76b948
commit
9ea9dcadbd
3 changed files with 4 additions and 2 deletions
|
|
@ -3162,6 +3162,8 @@ const char *linphone_core_get_nat_address_resolved(LinphoneCore *lc)
|
|||
int error;
|
||||
char ipstring [INET6_ADDRSTRLEN];
|
||||
|
||||
if (lc->net_conf.nat_address==NULL) return NULL;
|
||||
|
||||
if (parse_hostname_to_addr (lc->net_conf.nat_address, &ss, &ss_len)<0) {
|
||||
return lc->net_conf.nat_address;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 7b23259ecbe24579e7c30709763713d63be3aafa
|
||||
Subproject commit 5d342746830a6cc2aec1d3abb2d9abb898925292
|
||||
2
oRTP
2
oRTP
|
|
@ -1 +1 @@
|
|||
Subproject commit 5b231b8e0b9d82ccb93463ef4c2c28e15d68ba76
|
||||
Subproject commit a56d7f752717bea7d92cf63a6d187c2f6361d38b
|
||||
Loading…
Add table
Reference in a new issue