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-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41645181469bc1f9112826ce5476852b1a54e633;p=neomutt 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 d9e48289e..78d6f9320 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 0528ccf13..07bf6e897 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 3b14f361d..10536aa97 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");