summaryrefslogtreecommitdiff
path: root/agent/candidate.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/candidate.c')
-rw-r--r--agent/candidate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/agent/candidate.c b/agent/candidate.c
index 1632f51..7659b32 100644
--- a/agent/candidate.c
+++ b/agent/candidate.c
@@ -417,6 +417,8 @@ nice_candidate_copy (const NiceCandidate *candidate)
copy->turn = NULL;
copy->c.username = g_strdup (copy->c.username);
copy->c.password = g_strdup (copy->c.password);
+ if (copy->stun_server)
+ copy->stun_server = nice_address_dup (copy->stun_server);
return (NiceCandidate *) copy;
}