aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-09-11 02:23:28 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-09-11 02:23:28 +0000
commit8f826df8fbadd811f6bcc31344e3d8472bd6f2bb (patch)
treeb58fefa9fefe9ebb3ecc7721c464d978a0fc41c8 /imap.c
parentdd6e5c6501f58c49445f2d5b5da978183303f275 (diff)
downloadfetchmail-8f826df8fbadd811f6bcc31344e3d8472bd6f2bb.tar.gz
fetchmail-8f826df8fbadd811f6bcc31344e3d8472bd6f2bb.tar.bz2
fetchmail-8f826df8fbadd811f6bcc31344e3d8472bd6f2bb.zip
Code changes needed for next release.
svn path=/trunk/; revision=2552
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/imap.c b/imap.c
index 0b39e1c2..101f4030 100644
--- a/imap.c
+++ b/imap.c
@@ -261,7 +261,14 @@ static int do_rfc1731(int sock, char *truename)
return result;
}
- /* this patch by Dan Root <dar@thekeep.org> solves an endianess problem. */
+ len = from64tobits(challenge1.cstr, buf1);
+ if (len < 0) {
+ report(stderr, _("could not decode initial BASE64 challenge\n"));
+ return PS_AUTHFAIL;
+ }
+
+ /* this patch by Dan Root <dar@thekeep.org> solves an endianess
+ * problem. */
{
char tmp[4];
@@ -269,12 +276,6 @@ static int do_rfc1731(int sock, char *truename)
memcpy(challenge1.cstr, tmp, sizeof(tmp));
}
- len = from64tobits(challenge1.cstr, buf1);
- if (len < 0) {
- report(stderr, _("could not decode initial BASE64 challenge\n"));
- return PS_AUTHFAIL;
- }
-
/* Client responds with a Kerberos ticket and an authenticator for
* the principal "imap.hostname@realm" where "hostname" is the
* first component of the host name of the server with all letters