From 0ec5e9a8eadb065a059823fe45b3c2154c4b003f Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Wed, 2 Dec 2009 18:10:12 +0000 Subject: [PATCH] Fix an incorrect length in the new krb5int_c_decrypt_aead_compat git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23426 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/krb/aead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/crypto/krb/aead.c b/src/lib/crypto/krb/aead.c index 378d8c946..353cd1763 100644 --- a/src/lib/crypto/krb/aead.c +++ b/src/lib/crypto/krb/aead.c @@ -561,7 +561,7 @@ krb5int_c_decrypt_aead_compat(const struct krb5_aead_provider *aead, iov[1].flags = KRB5_CRYPTO_TYPE_DATA; iov[1].data = make_data(output->data, plain_len); - memcpy(iov[1].data.data, input->data + header_len, input->length); + memcpy(iov[1].data.data, input->data + header_len, plain_len); /* Use empty padding since tokens don't indicate the padding length. */ iov[2].flags = KRB5_CRYPTO_TYPE_PADDING; -- 2.26.2