mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 12:38:09 +00:00
Add missing nat policy ref.
This commit is contained in:
parent
fc1fed70fe
commit
cac2bc4d95
1 changed files with 1 additions and 1 deletions
|
|
@ -5199,7 +5199,7 @@ void linphone_core_set_firewall_policy(LinphoneCore *lc, LinphoneFirewallPolicy
|
|||
char *stun_server_username = NULL;
|
||||
|
||||
if (lc->nat_policy != NULL) {
|
||||
nat_policy = lc->nat_policy;
|
||||
nat_policy = linphone_nat_policy_ref(lc->nat_policy);
|
||||
stun_server = ms_strdup(linphone_nat_policy_get_stun_server(nat_policy));
|
||||
stun_server_username = ms_strdup(linphone_nat_policy_get_stun_server_username(nat_policy));
|
||||
linphone_nat_policy_clear(nat_policy);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue