From dfbd8e188c1cb05e8115228074abc6e0c415127d Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Wed, 17 Jan 2001 01:02:15 +0000 Subject: [PATCH] Try to catch mysterious failures of the SASL library instead of hanging. From Brendan Cully. --- imap/auth_sasl.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 + * Copyright (C) 2000-1 Brendan Cully * * 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) -- 2.40.0