diff options
author | Eduardo Chappa <chappa@washington.edu> | 2021-10-10 11:00:30 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2021-10-10 11:00:30 -0600 |
commit | 9b2bd07cf27037177bb76d699cd29c03b6b6c20c (patch) | |
tree | ebd21bfb2fa0617cdc40ab55469ba045b9972ff7 /pith | |
parent | e65d2f50fb1098212999d1b4d46a40fb338de914 (diff) | |
download | alpine-9b2bd07cf27037177bb76d699cd29c03b6b6c20c.tar.xz |
* Alpine might delete all passwords from the password file if the
password file is not unlocked by cancellation, or the authentication
for an XOAUTH2 server is cancelled, or the password of an account is
changed.
Diffstat (limited to 'pith')
-rw-r--r-- | pith/imap.c | 6 | ||||
-rw-r--r-- | pith/pine.hlp | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/pith/imap.c b/pith/imap.c index cde97ccf..4889a61e 100644 --- a/pith/imap.c +++ b/pith/imap.c @@ -1157,7 +1157,7 @@ void imap_delete_passwd_auth(MMLOGIN_S **m_list, char *user, STRLIST_S *hostlist, int altflag, char *authtype) { - MMLOGIN_S *l, *p; + MMLOGIN_S *l, *p, *q; int len, offset; if(m_list == NULL || *m_list == NULL) return; @@ -1186,8 +1186,9 @@ imap_delete_passwd_auth(MMLOGIN_S **m_list, char *user, /* relink *mlist */ if(p == *m_list) - *m_list = (*m_list)->next; + q = (*m_list)->next; else{ + q = *m_list; for(l = *m_list; l && l->next != p; l = l->next); l->next = p->next; } @@ -1201,6 +1202,7 @@ imap_delete_passwd_auth(MMLOGIN_S **m_list, char *user, free_strlist(&p->hosts); fs_give((void **) &p); + *m_list = q; dprint((9, "imap_delete_password: done with deletion.")); } diff --git a/pith/pine.hlp b/pith/pine.hlp index d3858b9e..0ef97809 100644 --- a/pith/pine.hlp +++ b/pith/pine.hlp @@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any reasonable place to be called from. Dummy change to get revision in pine.hlp ============= h_revision ================= -Alpine Commit 602 2021-10-08 21:42:40 +Alpine Commit 603 2021-10-10 11:00:24 ============= h_news ================= <HTML> <HEAD> @@ -206,6 +206,11 @@ Bugs addressed include: <UL> <LI> Alpine crashes when it cannot retrieve the privacy policy due to failure connecting to the external server. + +<LI> Alpine might delete all passwords from the password file if the + password file is not unlocked by cancellation, or the authentication + for an XOAUTH2 server is cancelled, or the password of an account + is changed. </UL> <P>Version 2.25 adds new features and addresses bugs found in previous |