From: Ken Raeburn Date: Wed, 12 Mar 2003 19:29:11 +0000 (+0000) Subject: Fix unaligned access found in alpha-linux testing: X-Git-Tag: krb5-1.3-alpha1~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6bf0ac7ce0023cd45d464e2ffb01f5718b88309a;p=krb5.git Fix unaligned access found in alpha-linux testing: * cnv_tkt_skey.c (krb524_convert_tkt_skey): Extract source IP address in its proper size, not as 'long'. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15275 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/krb524/ChangeLog b/src/krb524/ChangeLog index 672bffe8c..2a7b6cc54 100644 --- a/src/krb524/ChangeLog +++ b/src/krb524/ChangeLog @@ -1,3 +1,8 @@ +2003-03-12 Ken Raeburn + + * cnv_tkt_skey.c (krb524_convert_tkt_skey): Extract source IP + address in its proper size, not as 'long'. + 2003-03-06 Alexandra Ellwood * cnv_tkt_skey.c, conv_creds.c, conv_princ.c, encode.c, sendmsg.c: Removed Mac-specific includes. diff --git a/src/krb524/cnv_tkt_skey.c b/src/krb524/cnv_tkt_skey.c index 67349765c..595a1d392 100644 --- a/src/krb524/cnv_tkt_skey.c +++ b/src/krb524/cnv_tkt_skey.c @@ -176,7 +176,7 @@ int krb524_convert_tkt_skey(context, v5tkt, v4tkt, v5_skey, v4_skey, pname, pinst, prealm, - *((unsigned long *)kaddr.contents), + sinp->sin_addr.s_addr, (char *) v5etkt->session->contents, lifetime, /* issue_data */ @@ -194,7 +194,7 @@ int krb524_convert_tkt_skey(context, v5tkt, v4tkt, v5_skey, v4_skey, pname, pinst, prealm, - *((unsigned long *)kaddr.contents), + sinp->sin_addr.s_addr, (char *) v5etkt->session->contents, lifetime, /* issue_data */