From: Greg Hudson Date: Wed, 2 Dec 2009 18:10:12 +0000 (+0000) Subject: Fix an incorrect length in the new krb5int_c_decrypt_aead_compat X-Git-Tag: krb5-1.8-alpha1~109 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0ec5e9a8eadb065a059823fe45b3c2154c4b003f;p=krb5.git 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 --- 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;