From 1cadac2187c36802e89945a89efa58acb5f81765 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Wed, 21 Feb 2018 14:13:07 +0100 Subject: [PATCH] fix(Proxy): remove useless affectation on linphone_nat_policy_ref return --- coreapi/proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/proxy.c b/coreapi/proxy.c index cd815de65..fad3b0147 100644 --- a/coreapi/proxy.c +++ b/coreapi/proxy.c @@ -1538,7 +1538,7 @@ LinphoneNatPolicy * linphone_proxy_config_get_nat_policy(const LinphoneProxyConf void linphone_proxy_config_set_nat_policy(LinphoneProxyConfig *cfg, LinphoneNatPolicy *policy) { if (policy != NULL) { - policy = linphone_nat_policy_ref(policy); /* Prevent object destruction if the same policy is used */ + linphone_nat_policy_ref(policy); /* Prevent object destruction if the same policy is used */ policy->lc = cfg->lc; } if (cfg->nat_policy != NULL) linphone_nat_policy_unref(cfg->nat_policy);