From ca24cb257ba4281303aac4c83718f71ce295398c Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 11 Dec 1998 03:16:50 +0000 Subject: [PATCH] * old_decrypt.c (krb5_old_decrypt): Actually compare the 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 | 5 +++++ src/lib/crypto/old/old_decrypt.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/crypto/old/ChangeLog b/src/lib/crypto/old/ChangeLog index a8a4bda50..088c59617 100644 --- a/src/lib/crypto/old/ChangeLog +++ b/src/lib/crypto/old/ChangeLog @@ -1,3 +1,8 @@ +Thu Dec 10 22:16:14 1998 Tom Yu + + * old_decrypt.c (krb5_old_decrypt): Actually compare the + calculated checksum against the provided checksum. + 1998-11-13 Theodore Ts'o * Makefile.in: Set the myfulldir and mydir variables (which are diff --git a/src/lib/crypto/old/old_decrypt.c b/src/lib/crypto/old/old_decrypt.c index 31fb6ce79..ad0b39ebf 100644 --- a/src/lib/crypto/old/old_decrypt.c +++ b/src/lib/crypto/old/old_decrypt.c @@ -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; } -- 2.26.2