In krb5_c_make_checksum, avoid the structure copy of *input since we
authorGreg Hudson <ghudson@mit.edu>
Wed, 7 Oct 2009 18:14:49 +0000 (18:14 +0000)
committerGreg Hudson <ghudson@mit.edu>
Wed, 7 Oct 2009 18:14:49 +0000 (18:14 +0000)
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

src/lib/crypto/krb/make_checksum.c

index 29f1ebb2a8a31e080892a3abf73c413e5c6c0314..ca4ca58056b6edd00cf6f8e6eb3ea6bfd57ce0d1 100644 (file)
@@ -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);