[farsight2/master] Dupe username and passwords

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:26:23 PST 2008


---
 transmitters/nice/fs-nice-stream-transmitter.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/transmitters/nice/fs-nice-stream-transmitter.c b/transmitters/nice/fs-nice-stream-transmitter.c
index 78cec8a..0c43589 100644
--- a/transmitters/nice/fs-nice-stream-transmitter.c
+++ b/transmitters/nice/fs-nice-stream-transmitter.c
@@ -546,8 +546,8 @@ fs_candidate_to_nice_candidate (FsNiceStreamTransmitter *self,
       NICE_CANDIDATE_MAX_FOUNDATION);
   /*
    * ICE-6 per-candidate style passwords are broken in libnice
-  nc->username = (gchar*) candidate->username;
-  nc->password = (gchar*) candidate->username;
+  nc->username = g_strdup(candidate->username);
+  nc->password = g_strdup(candidate->password);
   */
 
   if (candidate->ip)
-- 
1.5.6.5




More information about the farsight-commits mailing list