[libgnome-keyring] NULL password from gnome_keyring_find_password() when not found.



commit 18affdaadb8c71bfc4092d9281b03c9833027c6a
Author: Stef Walter <stef memberwebs com>
Date:   Wed Mar 10 14:13:28 2010 +0000

    NULL password from gnome_keyring_find_password() when not found.
    
    Regression. We used to return a NULL password from
    gnome_keyring_find_password() and friends when no such item was
    found in the keyring.

 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 a363788..0d07deb 100644
--- a/library/gnome-keyring.c
+++ b/library/gnome-keyring.c
@@ -4516,7 +4516,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_res (cb, GNOME_KEYRING_RESULT_NO_MATCH);
+		gkr_callback_invoke_ok_string (cb, NULL);
 
 	/* We need a session to get the secret for this item */
 	} else {



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