* old_decrypt.c (krb5_old_decrypt): Actually compare the
authorTom Yu <tlyu@mit.edu>
Fri, 11 Dec 1998 03:16:50 +0000 (03:16 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 11 Dec 1998 03:16:50 +0000 (03:16 +0000)
calculated checksum against the provided checksum.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11091 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/old/ChangeLog
src/lib/crypto/old/old_decrypt.c

index a8a4bda506de4b68de25c62b936f82a92b8c7c94..088c5961780b79ad55d69d0be2b1b7ae78cb162a 100644 (file)
@@ -1,3 +1,8 @@
+Thu Dec 10 22:16:14 1998  Tom Yu  <tlyu@mit.edu>
+
+       * old_decrypt.c (krb5_old_decrypt): Actually compare the
+       calculated checksum against the provided checksum.
+
 1998-11-13  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
        * Makefile.in: Set the myfulldir and mydir variables (which are
index 31fb6ce79c19bd0977f66aa7d9d95a3a0fba8a0f..ad0b39ebf07d7bdc25ca2165563e986e06486489 100644 (file)
@@ -90,7 +90,7 @@ krb5_old_decrypt(enc, hash, key, usage, ivec, input, arg_output)
     if (ret = ((*(hash->hash))(1, &output, &cksum)))
        goto cleanup;
 
-    if (memcmp(cksum.data, output.data+blocksize, cksum.length) != 0) {
+    if (memcmp(cksum.data, cksumdata, cksum.length) != 0) {
        ret = KRB5KRB_AP_ERR_BAD_INTEGRITY;
        goto cleanup;
     }