Fix unaligned access found in alpha-linux testing:
authorKen Raeburn <raeburn@mit.edu>
Wed, 12 Mar 2003 19:29:11 +0000 (19:29 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 12 Mar 2003 19:29:11 +0000 (19:29 +0000)
* 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

src/krb524/ChangeLog
src/krb524/cnv_tkt_skey.c

index 672bffe8cc1298c82b6573682cbd8bb8e7f9dac1..2a7b6cc54e3f3be3c95d3a9abadabb2efe04dc62 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-12  Ken Raeburn  <raeburn@mit.edu>
+
+       * cnv_tkt_skey.c (krb524_convert_tkt_skey): Extract source IP
+       address in its proper size, not as 'long'.
+
 2003-03-06  Alexandra Ellwood  <lxs@mit.edu>
     * cnv_tkt_skey.c, conv_creds.c, conv_princ.c, encode.c, sendmsg.c: 
       Removed Mac-specific includes.
index 67349765c0440ba9c68c398b2b3ecf373fb3ae50..595a1d3929b4c6b355a4619f525fa933bae40cb2 100644 (file)
@@ -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 */