From: Brendan Cully Date: Fri, 12 Aug 2005 22:33:00 +0000 (+0000) Subject: Override SASL initial response if the server spoke first in its X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=839fd606a508c28ef7c15ccf24b0c4586899e9e2;p=neomutt Override SASL initial response if the server spoke first in its continuation response. Closes: #2034. --- diff --git a/imap/auth_sasl.c b/imap/auth_sasl.c index a76677ff7..34a3bf1d9 100644 --- a/imap/auth_sasl.c +++ b/imap/auth_sasl.c @@ -150,7 +150,10 @@ imap_auth_res_t imap_auth_sasl (IMAP_DATA* idata, const char* method) } } - if (!client_start) + /* client-start is only available with the SASL-IR extension, but + * SASL 2.1 seems to want to use it regardless, at least for DIGEST + * fast reauth. Override if the server sent an initial continuation */ + if (!client_start || buf[0]) { do {