des-fix-mustalign-20041016
authorJeffrey Altman <jaltman@mit.edu>
Sat, 16 Oct 2004 23:41:18 +0000 (23:41 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 16 Oct 2004 23:41:18 +0000 (23:41 +0000)
FIXES 15637

Forgot to fix the MUSTALIGN case

src/des/des.c

index 51291a2..5536066 100644 (file)
@@ -444,8 +444,8 @@ des_ecb_encrypt(void * clear, void * cipher,
     if ((afs_int32) cipher & 3) {
        L_save = L2;            /* cant bcopy a reg */
        R_save = R2;
-       cipher=((afs_uint32*)cipher)+1;
        memcpy((char *)cipher, (char *)&L_save, sizeof(L_save));
+       cipher=((afs_uint32*)cipher)+1;
        memcpy((char *)cipher, (char *)&R_save, sizeof(R_save));
     } else
 #endif