From: Thomas Roessler Date: Mon, 12 Feb 2001 10:36:22 +0000 (+0000) Subject: Fixes so mutt at least compiles with Brendan's new SASL patch. X-Git-Tag: mutt-1-3-15-rel~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8af2fa2116b7b8eb49aa44d47271b2d1d835ad2b;p=mutt Fixes so mutt at least compiles with Brendan's new SASL patch. --- diff --git a/imap/auth_anon.c b/imap/auth_anon.c index d9e48289..78d6f932 100644 --- a/imap/auth_anon.c +++ b/imap/auth_anon.c @@ -56,13 +56,13 @@ imap_auth_res_t imap_auth_anon (IMAP_DATA* idata) rc = imap_cmd_step (idata); while (rc == IMAP_CMD_CONTINUE); - if (rc != IMAP_CMD_DONE) + if (rc != IMAP_CMD_OK) { dprint (1, (debugfile, "Error receiving server response.\n")); goto bail; } - if (imap_code (idata->buf)) + if (imap_code (idata->cmd.buf)) return IMAP_AUTH_SUCCESS; bail: diff --git a/imap/auth_cram.c b/imap/auth_cram.c index 0528ccf1..07bf6e89 100644 --- a/imap/auth_cram.c +++ b/imap/auth_cram.c @@ -67,7 +67,7 @@ imap_auth_res_t imap_auth_cram_md5 (IMAP_DATA* idata) goto bail; } - if ((len = mutt_from_base64 (obuf, idata->buf + 2)) == -1) + if ((len = mutt_from_base64 (obuf, idata->cmd.buf + 2)) == -1) { dprint (1, (debugfile, "Error decoding base64 response.\n")); goto bail; @@ -111,13 +111,13 @@ imap_auth_res_t imap_auth_cram_md5 (IMAP_DATA* idata) rc = imap_cmd_step (idata); while (rc == IMAP_CMD_CONTINUE); - if (rc != IMAP_CMD_DONE) + if (rc != IMAP_CMD_OK) { dprint (1, (debugfile, "Error receiving server response.\n")); goto bail; } - if (imap_code (idata->buf)) + if (imap_code (idata->cmd.buf)) return IMAP_AUTH_SUCCESS; bail: diff --git a/imap/auth_gss.c b/imap/auth_gss.c index 3b14f361..10536aa9 100644 --- a/imap/auth_gss.c +++ b/imap/auth_gss.c @@ -233,7 +233,7 @@ imap_auth_res_t imap_auth_gss (IMAP_DATA* idata) do rc = imap_cmd_step (idata); while (rc == IMAP_CMD_CONTINUE); - if (rc != IMAP_CMD_DONE) + if (rc != IMAP_CMD_OK) { dprint (1, (debugfile, "Error receiving server response.\n")); mutt_socket_write(idata->conn, "*\r\n");