aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-02-28 00:31:27 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-02-28 00:31:27 +0000
commit2a2c3129e436d7560de8dcfdd11191cfa6506a92 (patch)
tree4e7c7cbe8887c4c4b55d7bc053c88823197da5f6 /imap.c
parentd4c2c187a478cdfbd55cb262ba8845930764c861 (diff)
downloadfetchmail-2a2c3129e436d7560de8dcfdd11191cfa6506a92.tar.gz
fetchmail-2a2c3129e436d7560de8dcfdd11191cfa6506a92.tar.bz2
fetchmail-2a2c3129e436d7560de8dcfdd11191cfa6506a92.zip
Ready to ship 5.0.0.
svn path=/trunk/; revision=2393
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c8
1 files changed, 8 insertions, 0 deletions
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 <dar@thekeep.org> 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"));