From 2a2c3129e436d7560de8dcfdd11191cfa6506a92 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 28 Feb 1999 00:31:27 +0000 Subject: Ready to ship 5.0.0. svn path=/trunk/; revision=2393 --- imap.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'imap.c') diff --git a/imap.c b/imap.c index 3332cd3b..ad654320 100644 --- a/imap.c +++ b/imap.c @@ -239,6 +239,14 @@ static int do_rfc1731(int sock, char *truename) return result; } + /* this patch by Dan Root solves an endianess problem. */ + { + char tmp[4]; + + *(int *)tmp = ntohl(*(int *) challenge1.cstr); + memcpy(challenge1.cstr, tmp, sizeof(tmp)); + } + len = from64tobits(challenge1.cstr, buf1); if (len < 0) { report(stderr, _("could not decode initial BASE64 challenge\n")); -- cgit v1.2.3