+Tue Jun 27 23:50:08 1995 Mark Eichin <eichin@cygnus.com>
+
+ * rd_safe.c (krb_rd_safe): use KRB4_32 for address comparison
+ and checksum swapping.
Tue Jun 27 15:49:35 EDT 1995 Paul Park (pjpark@mit.edu)
* kparse.c - Change LineNbr to sLineNbr to avoid conflict with kparse.h
/* don't swap, net order always */
p += sizeof(src_addr);
- if (!krb_ignore_ip_address && src_addr != (u_long) sender->sin_addr.s_addr)
+ if (!krb_ignore_ip_address &&
+ src_addr != (unsigned KRB4_32) sender->sin_addr.s_addr)
return RD_AP_MODIFIED;
/* safely get time_sec */
memcpy((char *)big_cksum, (char *)p, sizeof(big_cksum));
if (swap_bytes) {
/* swap_u_16(big_cksum); */
- unsigned long tt, *bb;
- bb = (unsigned long*)big_cksum;
+ unsigned KRB4_32 tt, *bb;
+ bb = (unsigned KRB4_32*)big_cksum;
tt = bb[0]; swap_u_long(tt); bb[0] = tt;
tt = bb[1]; swap_u_long(tt); bb[1] = tt;
tt = bb[2]; swap_u_long(tt); bb[2] = tt;