[evolution-data-server/email-factory] Fix crash in finding password.
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/email-factory] Fix crash in finding password.
- Date: Wed, 15 Jun 2011 17:15:02 +0000 (UTC)
commit 07fcf45f4307871aed06b505dde2a674ffb77906
Author: Srinivasa Ragavan <srini linux intel com>
Date: Thu Jun 16 01:42:45 2011 +0300
Fix crash in finding password.
mail/daemon/e-mail-data-session.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/mail/daemon/e-mail-data-session.c b/mail/daemon/e-mail-data-session.c
index 847b76c..d11bebb 100644
--- a/mail/daemon/e-mail-data-session.c
+++ b/mail/daemon/e-mail-data-session.c
@@ -346,7 +346,10 @@ impl_Mail_findPassword (EGdbusSessionCS *object, GDBusMethodInvocation *invocati
ipc(printf("Finding Password for: %s\n", key));
password = e_passwords_get_password ("Mail", key);
- egdbus_session_cs_complete_find_password (object, invocation, password);
+ if (g_getenv("EDS_SHOW_PASSWORDS")) {
+ printf("findPass: %s: %s\n", key, password ? password : "EMPTY");
+ }
+ egdbus_session_cs_complete_find_password (object, invocation, password ? password : "");
g_free (password);
return TRUE;
@@ -359,6 +362,9 @@ impl_Mail_addPassword (EGdbusSessionCS *object, GDBusMethodInvocation *invocatio
EMailDataSessionPrivate *priv = DATA_SESSION_PRIVATE(msession);
ipc(printf("Adding Password for: %s (remember: %d)\n", key, remember));
+ if (g_getenv("EDS_SHOW_PASSWORDS")) {
+ printf("Adding password: %s : %s\n", key, password);
+ }
e_passwords_add_password (key, password);
if (remember)
e_passwords_remember_password ("Mail", key);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]