Commit 15c8feae authored by Olivier Crête's avatar Olivier Crête

candidate: Copy stun_server with candidate

Bug reported and fix suggested by Masato Takahashi

Fixes #164
parent 92aa3d5d
...@@ -417,6 +417,8 @@ nice_candidate_copy (const NiceCandidate *candidate) ...@@ -417,6 +417,8 @@ nice_candidate_copy (const NiceCandidate *candidate)
copy->turn = NULL; copy->turn = NULL;
copy->c.username = g_strdup (copy->c.username); copy->c.username = g_strdup (copy->c.username);
copy->c.password = g_strdup (copy->c.password); copy->c.password = g_strdup (copy->c.password);
if (copy->stun_server)
copy->stun_server = nice_address_dup (copy->stun_server);
return (NiceCandidate *) copy; return (NiceCandidate *) copy;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment