From 8f826df8fbadd811f6bcc31344e3d8472bd6f2bb Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 11 Sep 1999 02:23:28 +0000 Subject: Code changes needed for next release. svn path=/trunk/; revision=2552 --- imap.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'imap.c') 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 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 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 -- cgit v1.2.3