From 839fd606a508c28ef7c15ccf24b0c4586899e9e2 Mon Sep 17 00:00:00 2001 From: Brendan Cully Date: Fri, 12 Aug 2005 22:33:00 +0000 Subject: [PATCH] Override SASL initial response if the server spoke first in its continuation response. Closes: #2034. --- imap/auth_sasl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { -- 2.40.0