From 2afa38327b6951413ba8e3825e62d5dc791d5252 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 28 May 1997 13:54:37 +0000 Subject: Force 32 bits for RFC1731 calculation. svn path=/trunk/; revision=1034 --- imap.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'imap.c') diff --git a/imap.c b/imap.c index 733812c9..fb057bda 100644 --- a/imap.c +++ b/imap.c @@ -81,16 +81,15 @@ int imap_ok (int sock, char *argbuf) } #ifdef KERBEROS_V4 +#include + static int do_rfc1731(int sock, struct query *ctl, char *buf) -/* authenticate as per RFC1731 - * note 32-bit integer requirement here... - * sizeof int must be 4! - */ +/* authenticate as per RFC1731 -- note 32-bit integer requirement here */ { int result = 0, len; char buf1[4096], buf2[4096]; union { - int cint; + u_int32_t cint; char cstr[4]; } challenge1, challenge2; char srvinst[INST_SZ]; -- cgit v1.2.3