aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-08-22 03:27:56 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-08-22 03:27:56 +0800
commit6b6dbf0a9b168e9fcf82cdac5c76aee355be8be3 (patch)
tree1cbd7e93a39b654437c05387e2457042a1dae5ff
parentfa883ee48a330915cb35b6d81484675b2112714b (diff)
downloadgsoc2013-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
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-local.c2
-rw-r--r--mail/mail-session.c4
3 files changed, 10 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 052883b8da..a9c824f439 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2001-08-21 Jeffrey Stedfast <fejj@ximian.com>
+
+ * mail-session.c (mail_session_forget_password): zero-ize the
+ password before freeing.
+ (forget_password): Same.
+
2001-08-21 Peter Williams <peterw@ximian.com>
* message-list.c (message_list_set_folder): Don't sink the extras since
diff --git a/mail/mail-local.c b/mail/mail-local.c
index 7094d60aab..a0c6802ae7 100644
--- a/mail/mail-local.c
+++ b/mail/mail-local.c
@@ -177,7 +177,7 @@ save_metainfo(struct _local_meta *meta)
typedef struct {
CamelStore parent_object;
-
+
EvolutionStorage *storage;
GNOME_Evolution_Storage corba_storage;
EvolutionStorageListener *local_storage_listener;
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);
}