diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-09-26 02:12:47 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-09-26 02:12:47 +0800 |
commit | d6cecfcef1dae37b73572ce9e29d3a35d1cbc6b7 (patch) | |
tree | 76c8e590e043772043d5122914b25fce794d23d1 /mail/mail-mt.c | |
parent | ce71400f35232aa9122fceb3436dfc56b8b206e8 (diff) | |
download | gsoc2013-evolution-d6cecfcef1dae37b73572ce9e29d3a35d1cbc6b7.tar.gz gsoc2013-evolution-d6cecfcef1dae37b73572ce9e29d3a35d1cbc6b7.tar.zst gsoc2013-evolution-d6cecfcef1dae37b73572ce9e29d3a35d1cbc6b7.zip |
Only cache the password for the service if it has an entry in the account
2001-09-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-mt.c (pass_got): Only cache the password for the service if
it has an entry in the account database. Fixes bug #10875.
svn path=/trunk/; revision=13111
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r-- | mail/mail-mt.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/mail/mail-mt.c b/mail/mail-mt.c index 2324fa64ce..69646e44fd 100644 --- a/mail/mail-mt.c +++ b/mail/mail-mt.c @@ -450,12 +450,14 @@ pass_got (char *string, void *data) service = mca->transport; } - mail_config_service_set_save_passwd (service, remember); - - /* set `remember' to TRUE because people don't want to have to - re-enter their passwords for this session even if they told - us not to cache their passwords in the dialog...*sigh* */ - remember = TRUE; + if (mca) { + mail_config_service_set_save_passwd (service, remember); + + /* set `remember' to TRUE because people don't want to have to + re-enter their passwords for this session even if they told + us not to cache their passwords in the dialog...*sigh* */ + remember = TRUE; + } } if (m->cache) |