From 5cb04ac7d0afa3764da0b79bc12a6653645c60f7 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Thu, 8 Oct 2009 12:59:33 +0000 Subject: [PATCH] In krb5_c_verify_checksum, avoid the structure copy of *data since we don't care about data->magic. Squashes a bunch of unimportant Coverity defects. (May not be the correct long-term solution.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22868 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/krb/verify_checksum.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/crypto/krb/verify_checksum.c b/src/lib/crypto/krb/verify_checksum.c index ae15cc872..4466c7dad 100644 --- a/src/lib/crypto/krb/verify_checksum.c +++ b/src/lib/crypto/krb/verify_checksum.c @@ -59,7 +59,8 @@ krb5_c_verify_checksum(krb5_context context, const krb5_keyblock *key, krb5_crypto_iov iov[1]; iov[0].flags = KRB5_CRYPTO_TYPE_DATA; - iov[0].data = *data; + iov[0].data.data = data->data; + iov[0].data.length = data->length; return (*keyhash->verify_iov)(key, usage, 0, iov, 1, &indata, valid); -- 2.26.2