summaryrefslogtreecommitdiffstats
path: root/imap
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2001-01-17 01:02:15 +0000
committerThomas Roessler <roessler@does-not-exist.org>2001-01-17 01:02:15 +0000
commitdfbd8e188c1cb05e8115228074abc6e0c415127d (patch)
tree4bbe2b15990b7b895589d1b83fe7abe5d862fb24 /imap
parent86642f071bfde4c31c3188bfa7bed0fc8638081c (diff)
Try to catch mysterious failures of the SASL library instead of
hanging. From Brendan Cully.
Diffstat (limited to 'imap')
-rw-r--r--imap/auth_sasl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/imap/auth_sasl.c b/imap/auth_sasl.c
index b037f689..55885e2c 100644
--- a/imap/auth_sasl.c
+++ b/imap/auth_sasl.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2000 Brendan Cully <brendan@kublai.com>
+ * Copyright (C) 2000-1 Brendan Cully <brendan@kublai.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -171,6 +171,12 @@ imap_auth_res_t imap_auth_sasl (IMAP_DATA* idata)
strfcpy (buf + olen, "\r\n", sizeof (buf) - olen);
mutt_socket_write (idata->conn, buf);
}
+
+ /* If SASL has errored out, send an abort string to the server */
+ if (rc < 0)
+ {
+ mutt_socket_write (idata->conn, "*\r\n");
+ }
}
while (irc != IMAP_CMD_DONE)