aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-session.c
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 /mail/mail-session.c
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
Diffstat (limited to 'mail/mail-session.c')
-rw-r--r--mail/mail-session.c4
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);
}
aph'>* Enable SAE/escript function, which allows creation of standalone Erlangolgeni2004-06-275-4/+47 * Restore PORTEPOCH.olgeni2004-06-251-0/+1 * Upgrade to release R9C-2.olgeni2004-06-243-20/+15 * Upgrade to version R9C-1.olgeni2004-05-289-165/+35 * Add SIZE data.olgeni2004-03-191-0/+3 * Unbreak filelib:fold_files/6, add missing clause.olgeni2004-03-122-1/+18 * Do not close a SSL connection when a finite timeout is specified andolgeni2004-03-122-1/+15 * Add ONLY_FOR_ARCHS=i386, as dependent ports consistently fail to build onolgeni2004-03-011-0/+1 * Sort variables, make portlint happier.olgeni2004-03-011-5/+5 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-1/+1 * Do not install dangling symlinks.olgeni2004-01-252-4/+21 * Use the SORT macro from bsd.port.mk.trevor2004-01-221-4/+4 * Fix dets file corruption issue.olgeni2003-12-282-1/+78 * Look for JDK 1.4.2.olgeni2003-11-211-1/+1 * Add nsswitch support, required when running on -CURRENT.olgeni2003-09-263-1/+24 * Bump PORTREVISION for help related fixes.olgeni2003-09-061-1/+1 * The open_help function only looks for the netscape executable on unixolgeni2003-09-061-0/+88 * Fix help file pathname for debugger application.olgeni2003-09-063-0/+42 * The ei_decode_longlong function fails when decoding long values >olgeni2003-08-312-0/+15 * Unbreak: fix linker issue when building .so modules.olgeni2003-08-312-0/+39 * Bump PORTEPOCH.olgeni2003-08-081-0/+1 * Upgrade to release R9C-0, and start using OTP release numbers asolgeni2003-08-078-114/+43 * * Set java/jdk14 as the default JDK.olgeni2003-06-231-29/+28 * Merge more crypto related fixes for recent OpenSSL versions.olgeni2003-06-023-2/+51 * Fix build problem when using WITHOUT_X11.olgeni2003-06-011-2/+1 * Fix version number in emacs hint.olgeni2003-03-061-1/+1 * Add hint about OPTIONAL_MANPATH.olgeni2003-03-061-4/+6 * Update to R9B-1.olgeni2003-03-0611-105/+53 * Unbreak after OpenSSL update (using OPENSSL_DES_LIBDES_COMPATIBILITY).olgeni2003-03-031-0/+13 * De-pkg-comment my ports + some more.olgeni2003-02-232-1/+1 * Fix dependencies: remove USE_XLIB and depend on tk84.olgeni2003-01-021-1/+1 * Add installation message suggesting path to emacs mode.olgeni2002-11-161-0/+9 * Make more silent + whitespace change.olgeni2002-11-161-3/+3 * Change PLIST generation to allow installing custom libraries inolgeni2002-11-133-1/+68 * Fix (rare) installation problem when some files already exist in bin/.olgeni2002-11-131-0/+14 * Enable threading and HiPE by default.olgeni2002-11-131-15/+1 * Add $FreeBSD$.olgeni2002-11-131-0/+2 * find -> ${FIND}.olgeni2002-11-131-2/+2 * I removed the autoconf dependency but was still calling ${AUTOCONF},olgeni2002-11-121-2/+0 * Add WITH_ERLANG_HIPE option, to enable HiPE support.olgeni2002-11-041-0/+7 * Update to version R9B-0, use ${SHAREOWN}:${SHAREGRP} ratherolgeni2002-11-0316-325/+369 * Add support for WITH_ERLANG_THREADS (enables threaded I/O).olgeni2002-07-151-0/+9 * chown lib/erlang to root:wheel with proper permissions, do not use bogusolgeni2002-07-151-0/+2 * Update port to version 8.1 (R8B-1)olgeni2002-04-157-129/+78 * Add a link to the erl_call utility in ${LOCALBASE}/bin (useful for shellolgeni2002-04-012-0/+2 * Add (forgotten) build dependency on devel/autoconf213.olgeni2002-04-011-0/+2 * Update port to version 8.0 (R8B-0).olgeni2002-03-3112-133/+129 * Fix diff path in patch-al.olgeni2002-02-081-2/+3 * Fix strerror_r conflict.olgeni2002-02-081-0/+18 * Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;knu2002-01-291-9/+9 * Update port to version R7B-4, with updated documentation tarball. I alsoolgeni2001-10-062-29/+36 * * Point the default JAVABINDIR/JAVAPORT to the native jdk1.3olgeni2001-09-281-19/+11 * Take over maintainership.olgeni2001-06-111-1/+1 * Update port to version 7.3.0 (OTP-R7B-3), and add some improvements toolgeni2001-06-073-8/+29 * Update port to version R7B-2.olgeni2001-03-08