[gnome-keyring] [login] Don't freak out during race condition to remove login secret.



commit fcb58709e3ddaf0dd20ff0234e6cba6c30a87853
Author: Stef Walter <stef memberwebs com>
Date:   Wed Jan 6 14:29:15 2010 +0000

    [login] Don't freak out during race condition to remove login secret.

 daemon/login/gkd-login.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/daemon/login/gkd-login.c b/daemon/login/gkd-login.c
index d1a8403..2ff59b1 100644
--- a/daemon/login/gkd-login.c
+++ b/daemon/login/gkd-login.c
@@ -654,7 +654,8 @@ gkd_login_remove_secret (const gchar *first, ...)
 	item = find_login_keyring_item (session, &fields);
 	if (item != NULL) {
 		if (!gp11_object_destroy (item, &error)) {
-			g_warning ("couldn't remove stored secret from login keyring: %s", error->message);
+			if (error->code != CKR_OBJECT_HANDLE_INVALID)
+				g_warning ("couldn't remove stored secret from login keyring: %s", error->message);
 			g_clear_error (&error);
 		}
 		g_object_unref (item);



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