diff options
author | Greg Hudson <ghudson@mit.edu> | 2009-10-08 12:59:33 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2009-10-08 12:59:33 +0000 |
commit | 5cb04ac7d0afa3764da0b79bc12a6653645c60f7 (patch) | |
tree | eab6731e3d3ba75fecca926862b7801a6771d3bd /src | |
parent | c1da485d46009fe4c8b119b02c1c252cce32f196 (diff) | |
download | krb5-5cb04ac7d0afa3764da0b79bc12a6653645c60f7.tar.gz krb5-5cb04ac7d0afa3764da0b79bc12a6653645c60f7.tar.xz krb5-5cb04ac7d0afa3764da0b79bc12a6653645c60f7.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/crypto/krb/verify_checksum.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/crypto/krb/verify_checksum.c b/src/lib/crypto/krb/verify_checksum.c index ae15cc872a..4466c7dadf 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); |