evolution-data-server r9642 - branches/gnome-2-24/libedataserverui



Author: sragavan
Date: Mon Oct  6 10:45:57 2008
New Revision: 9642
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9642&view=rev

Log:
2008-10-06  Srinivasa Ragavan  <sragavan novell com>

	** Fix for bug #546406

	* libedataserverui/e-passwords.c: Don't lookup password from old
	keyring.



Modified:
   branches/gnome-2-24/libedataserverui/ChangeLog
   branches/gnome-2-24/libedataserverui/e-passwords.c

Modified: branches/gnome-2-24/libedataserverui/e-passwords.c
==============================================================================
--- branches/gnome-2-24/libedataserverui/e-passwords.c	(original)
+++ branches/gnome-2-24/libedataserverui/e-passwords.c	Mon Oct  6 10:45:57 2008
@@ -882,6 +882,11 @@
 		while (iter != NULL) {
 			GnomeKeyringFound *found = iter->data;
 
+			if (default_keyring && strcmp(default_keyring, found->keyring) != 0) {
+				g_message ("Received a password from keyring '%s'. But looking for the password from '%s' keyring\n", found->keyring, default_keyring);
+				iter = g_list_next (iter);
+				continue;			
+			}
 			if (ep_keyring_validate (uri->user, uri->host, NULL, found->attributes)) {
 				msg->password = g_strdup (found->secret);
 				break;
@@ -1228,10 +1233,7 @@
 			GTK_TABLE (container), widget,
 			1, 2, 3, 4, GTK_EXPAND | GTK_FILL, GTK_FILL, 0, 0);
 	}
-#ifdef WITH_GNOME_KEYRING
-	if (gnome_keyring_is_available ())
-		gnome_keyring_get_default_keyring_sync (&default_keyring); 
-#endif
+
 
 	msg->noreply = noreply;
 
@@ -1268,6 +1270,10 @@
 		ep_key_file_load ();
 	}
 
+#ifdef WITH_GNOME_KEYRING
+	if (gnome_keyring_is_available ())
+		gnome_keyring_get_default_keyring_sync (&default_keyring); 
+#endif
 	G_UNLOCK (passwords);
 }
 



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