Index: lib/ntlmauth.c
===================================================================
RCS file: /server/cvs-server/squid/squid/lib/ntlmauth.c,v
retrieving revision 1.6
diff -u -w -r1.6 ntlmauth.c
--- lib/ntlmauth.c	17 Jun 2002 18:27:30 -0000	1.6
+++ lib/ntlmauth.c	22 Jul 2002 02:00:05 -0000
@@ -109,9 +109,9 @@
     int l = (*payload_length);
     memcpy(payload + l, toadd, toadd_length);
 
-    hdr->len = toadd_length;
-    hdr->maxlen = toadd_length;
-    hdr->offset = l + base_offset;	/* 48 is the base offset of the payload */
+    hdr->len = SSWAP(toadd_length);
+    hdr->maxlen = SSWAP(toadd_length);
+    hdr->offset = WSWAP(l + base_offset);	/* 48 is the base offset of the payload */
     (*payload_length) += toadd_length;
 }
 
