From: Greg Hudson Date: Wed, 7 Oct 2009 18:14:49 +0000 (+0000) Subject: In krb5_c_make_checksum, avoid the structure copy of *input since we X-Git-Tag: krb5-1.8-alpha1~314 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f3bf2ee29ae2fcea2a258b8477787eb7359ce4a1;p=krb5.git In krb5_c_make_checksum, avoid the structure copy of *input since we don't care about input->magic. Squashes a bunch of unimportant Coverity defects. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22866 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/krb/make_checksum.c b/src/lib/crypto/krb/make_checksum.c index 29f1ebb2a..ca4ca5805 100644 --- a/src/lib/crypto/krb/make_checksum.c +++ b/src/lib/crypto/krb/make_checksum.c @@ -80,7 +80,8 @@ krb5_c_make_checksum(krb5_context context, krb5_cksumtype cksumtype, krb5_crypto_iov iov[1]; iov[0].flags = KRB5_CRYPTO_TYPE_DATA; - iov[0].data = *input; + iov[0].data.data = input->data; + iov[0].data.length = input->length; assert(keyhash->hash_iov != NULL);