summaryrefslogtreecommitdiff
path: root/imap/src/c-client/imap4r1.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-05-13 02:16:34 -0600
committerEduardo Chappa <chappa@washington.edu>2020-05-13 02:16:34 -0600
commit00c4ef9e0d4bc4d1ea210e7a0d31494b4116bb4a (patch)
treea45ced362cdacee4559153b9d9bd68130ab9b7a7 /imap/src/c-client/imap4r1.c
parent1a2261b89b700ae5d73bb82a7b581d7d30012f90 (diff)
downloadalpine-00c4ef9e0d4bc4d1ea210e7a0d31494b4116bb4a.tar.xz
* Avoid error messages or tcp timeouts when cancelling imap authentication.
Diffstat (limited to 'imap/src/c-client/imap4r1.c')
-rw-r--r--imap/src/c-client/imap4r1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/imap/src/c-client/imap4r1.c b/imap/src/c-client/imap4r1.c
index b2c685fb..43e5398b 100644
--- a/imap/src/c-client/imap4r1.c
+++ b/imap/src/c-client/imap4r1.c
@@ -1187,6 +1187,10 @@ long imap_auth (MAILSTREAM *stream,NETMBX *mb,char *tmp,char *usr)
net_port(LOCAL->netstream),&trial,usr);
LOCAL->sensitive = NIL; /* unhide */
+ if(base && ok && !trial){ /* return now or see below for the same code */
+ mm_log ("IMAP Authentication cancelled",ERROR);
+ return NIL;
+ }
/* make sure have a response */
if (!(reply = &LOCAL->reply)->tag)
reply = imap_fake (stream,tag,