Blob Blame History Raw
From dca74bd36dd5f3f16f963a194e53a05fda68d868 Mon Sep 17 00:00:00 2001
From: Vincent Untz <vuntz@gnome.org>
Date: Tue, 16 Feb 2010 13:06:41 +0100
Subject: [PATCH] When no password is found, return GNOME_KEYRING_RESULT_NO_MATCH

We were returning GNOME_KEYRING_RESULT_OK with a NULL password, but some
applications rely on GNOME_KEYRING_RESULT_NO_MATCH.

https://bugzilla.gnome.org/show_bug.cgi?id=608510
---
 library/gnome-keyring.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/library/gnome-keyring.c b/library/gnome-keyring.c
index 8931fe5..35a860c 100644
--- a/library/gnome-keyring.c
+++ b/library/gnome-keyring.c
@@ -4379,7 +4379,7 @@ find_password_1_reply (GkrOperation *op, const char *path, gpointer user_data)
 	/* All done, complete the operation here */
 	if (path == NULL) {
 		cb = gkr_operation_pop (op);
-		gkr_callback_invoke_ok_string (cb, NULL);
+		gkr_callback_invoke_res (cb, GNOME_KEYRING_RESULT_NO_MATCH);
 
 	/* We need a session to get the secret for this item */
 	} else {
-- 
1.6.6.1