summaryrefslogtreecommitdiff
path: root/imap/src/c-client/pop3.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2021-09-12 22:15:34 -0600
committerEduardo Chappa <chappa@washington.edu>2021-09-12 22:15:34 -0600
commitcabf16e5f9e138d77e2800d753c7ce7c46a18104 (patch)
tree38d4d014dcdc68ead0759a687d55b3b6307ffb79 /imap/src/c-client/pop3.c
parentae670bca7174ee35b10f7b0aa7b42dc73f1adfd6 (diff)
downloadalpine-cabf16e5f9e138d77e2800d753c7ce7c46a18104.tar.xz
* Additional code so that passwords are not deleted when connections
are lost.
Diffstat (limited to 'imap/src/c-client/pop3.c')
-rw-r--r--imap/src/c-client/pop3.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/imap/src/c-client/pop3.c b/imap/src/c-client/pop3.c
index ea8a64f5..d982744c 100644
--- a/imap/src/c-client/pop3.c
+++ b/imap/src/c-client/pop3.c
@@ -666,7 +666,8 @@ 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);
+ if(LOCAL->netstream && !ret)
+ delete_password(mb, usr);
fs_give ((void **) &t);
}
if(mb && *mb->auth){