ekiga r7632 - in trunk: . lib/engine/components/opal



Author: dsandras
Date: Sun Feb  1 21:07:38 2009
New Revision: 7632
URL: http://svn.gnome.org/viewvc/ekiga?rev=7632&view=rev

Log:
Fixed account data corruption when the authentication user name is
left blank (bug #570024).


Modified:
   trunk/ChangeLog
   trunk/lib/engine/components/opal/opal-account.cpp

Modified: trunk/lib/engine/components/opal/opal-account.cpp
==============================================================================
--- trunk/lib/engine/components/opal/opal-account.cpp	(original)
+++ trunk/lib/engine/components/opal/opal-account.cpp	Sun Feb  1 21:07:38 2009
@@ -387,9 +387,11 @@
     std::string new_name = result.text ("name");
     std::string new_host = result.text ("host");
     std::string new_user = result.text ("user");
-      std::string new_authentication_user = new_user;
+    std::string new_authentication_user;
     if (get_protocol_name () == "SIP")
       new_authentication_user = result.text ("authentication_user");
+    if (new_authentication_user.empty ())
+      new_authentication_user = new_user;
     std::string new_password = result.private_text ("password");
     bool new_enabled = result.boolean ("enabled");
     unsigned new_timeout = atoi (result.text ("timeout").c_str ());



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]