diff options
author | Luke Howard <lukeh@padl.com> | 2010-05-14 15:38:18 +0000 |
---|---|---|
committer | Luke Howard <lukeh@padl.com> | 2010-05-14 15:38:18 +0000 |
commit | 53feef666e249cdd59c00482c7c50fe7be685a04 (patch) | |
tree | e57a66576a100357d007b240abcf4d7a676d9209 | |
parent | f7d55dcd75cd99e6ed903a20bf9dea5fe73c0238 (diff) | |
download | krb5-53feef666e249cdd59c00482c7c50fe7be685a04.zip krb5-53feef666e249cdd59c00482c7c50fe7be685a04.tar.gz krb5-53feef666e249cdd59c00482c7c50fe7be685a04.tar.bz2 |
restore some accidentally deleted checks
git-svn-id: svn://anonsvn.mit.edu/krb5/users/lhoward/camellia-ccm@24032 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/crypto/krb/dk/dk_ccm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/crypto/krb/dk/dk_ccm.c b/src/lib/crypto/krb/dk/dk_ccm.c index bb363f4..9f63ecb 100644 --- a/src/lib/crypto/krb/dk/dk_ccm.c +++ b/src/lib/crypto/krb/dk/dk_ccm.c @@ -452,7 +452,7 @@ krb5int_ccm_decrypt(const struct krb5_keytypes *ktp, header_len = ktp->crypto_length(ktp, KRB5_CRYPTO_TYPE_HEADER); header = krb5int_c_locate_iov(data, num_data, KRB5_CRYPTO_TYPE_HEADER); - if (header == NULL) + if (header == NULL || header->data.length != header_len) return KRB5_BAD_MSIZE; trailer_len = ktp->crypto_length(ktp, KRB5_CRYPTO_TYPE_TRAILER); |