diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-local.c | 2 | ||||
-rw-r--r-- | mail/mail-session.c | 4 |
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); } |