diff options
author | Eduardo Chappa <chappa@washington.edu> | 2021-09-09 21:01:09 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2021-09-09 21:01:09 -0600 |
commit | 7feb75607413687c38c51197a73611cb30d39127 (patch) | |
tree | d8da4994dcd377360494775f5c1a666a30676e47 /imap/src/c-client/pop3.c | |
parent | 68ac2c9a0ed6d3b0aa1f14c1b5efc9a44e9d871f (diff) | |
download | alpine-7feb75607413687c38c51197a73611cb30d39127.tar.xz |
* Alpine will delete passwords that do not work from internal memory
and the local password cache (password file or system local cache.)
Diffstat (limited to 'imap/src/c-client/pop3.c')
-rw-r--r-- | imap/src/c-client/pop3.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/imap/src/c-client/pop3.c b/imap/src/c-client/pop3.c index 89c3d9cb..ea8a64f5 100644 --- a/imap/src/c-client/pop3.c +++ b/imap/src/c-client/pop3.c @@ -628,12 +628,14 @@ long pop3_auth (MAILSTREAM *stream,NETMBX *mb,char *pwd,char *usr) at->name,t); mm_log (pwd,NIL); fs_give ((void **) &t); + delete_password(mb, usr); } trial = 0; /* initial trial count */ do { if (t) { sprintf (pwd,"Retrying %s authentication after %.80s",at->name,t); mm_log (pwd,WARN); + delete_password(mb, usr); fs_give ((void **) &t); } if(at->flags & AU_SINGLE){ @@ -664,6 +666,7 @@ long pop3_auth (MAILSTREAM *stream,NETMBX *mb,char *pwd,char *usr) sprintf (pwd,"Can not authenticate to POP3 server: %.80s",t); mm_log (pwd,ERROR); } + delete_password(mb, usr); fs_give ((void **) &t); } if(mb && *mb->auth){ @@ -696,6 +699,7 @@ long pop3_auth (MAILSTREAM *stream,NETMBX *mb,char *pwd,char *usr) LOCAL->sensitive=NIL; /* unhide */ } if (!ret) { /* failure */ + delete_password(mb, usr); mm_log (LOCAL->reply,WARN); if (trial == pop3_maxlogintrials) mm_log ("Too many login failures",ERROR); |