From d25ee01e998708ff6040c4ea34931f989abab813 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 21 Jun 2016 17:14:48 +0200 Subject: [PATCH] Also clear the STUN server username when cleaning a NAT policy. --- coreapi/nat_policy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coreapi/nat_policy.c b/coreapi/nat_policy.c index 6690c4751..cf3e11b9d 100644 --- a/coreapi/nat_policy.c +++ b/coreapi/nat_policy.c @@ -127,6 +127,7 @@ void linphone_nat_policy_clear(LinphoneNatPolicy *policy) { linphone_nat_policy_enable_ice(policy, FALSE); linphone_nat_policy_enable_upnp(policy, FALSE); linphone_nat_policy_set_stun_server(policy, NULL); + linphone_nat_policy_set_stun_server_username(policy, NULL); } bool_t linphone_nat_policy_stun_enabled(const LinphoneNatPolicy *policy) {