diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-08-22 03:27:56 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-08-22 03:27:56 +0800 |
commit | 6b6dbf0a9b168e9fcf82cdac5c76aee355be8be3 (patch) | |
tree | 1cbd7e93a39b654437c05387e2457042a1dae5ff /mail/mail-session.c | |
parent | fa883ee48a330915cb35b6d81484675b2112714b (diff) | |
download | gsoc2013-evolution-6b6dbf0a9b168e9fcf82cdac5c76aee355be8be3.tar.gz gsoc2013-evolution-6b6dbf0a9b168e9fcf82cdac5c76aee355be8be3.tar.zst gsoc2013-evolution-6b6dbf0a9b168e9fcf82cdac5c76aee355be8be3.zip |
zero-ize the password before freeing. (forget_password): Same.
2001-08-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (mail_session_forget_password): zero-ize the
password before freeing.
(forget_password): Same.
svn path=/trunk/; revision=12350
Diffstat (limited to 'mail/mail-session.c')
-rw-r--r-- | mail/mail-session.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/mail-session.c b/mail/mail-session.c index fe56537588..25490b5984 100644 --- a/mail/mail-session.c +++ b/mail/mail-session.c @@ -200,6 +200,7 @@ forget_password (CamelSession *session, CamelService *service, return; g_hash_table_remove (mail_session->passwords, key); + memset (old_data, 0, strlen (old_data)); g_free (old_data); g_free (old_key); } @@ -239,7 +240,7 @@ struct _timeout_data { struct _timeout_msg { struct _mail_msg msg; - + CamelTimeoutCallback cb; gpointer camel_data; }; @@ -458,6 +459,7 @@ mail_session_forget_password (const char *key) if (g_hash_table_lookup_extended (passwords, key, &okey, &value)) { g_hash_table_remove (passwords, key); + memset (value, 0, strlen (value)); g_free (okey); g_free (value); } |