diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2022-06-01 13:53:30 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2022-06-01 14:09:21 -0400 |
commit | 15c8feae5516079aafec4134e823f7c927183fa5 (patch) | |
tree | 1e1435cc6e20b2ebb4e2d6e6c830bca93c3a9a7a | |
parent | 92aa3d5dcbe67ef1d7e0abe06cc400f9442dbc45 (diff) | |
download | libnice-15c8feae5516079aafec4134e823f7c927183fa5.tar.gz |
candidate: Copy stun_server with candidate
Bug reported and fix suggested by Masato Takahashi
Fixes #164
-rw-r--r-- | agent/candidate.c | 2 |
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; } |