diff options
author | Greg Hudson <ghudson@mit.edu> | 2009-01-23 18:19:19 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2009-01-23 18:19:19 +0000 |
commit | 236c602f85047d44fdf514fa99e357b1487eea84 (patch) | |
tree | 4fe3e088ac8d528411d7ceb858570ca918dba333 /src | |
parent | 5c2d383292d4080d31e834919a527427fe1ecbe8 (diff) | |
download | krb5-236c602f85047d44fdf514fa99e357b1487eea84.tar.gz krb5-236c602f85047d44fdf514fa99e357b1487eea84.tar.xz krb5-236c602f85047d44fdf514fa99e357b1487eea84.zip |
Initialize ds.magic in k5_md5_hmac_hash, to avoid harmlessly copying
around its uninitialized value in krb5_hmac.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21787 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/crypto/keyhash_provider/md5_hmac.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/crypto/keyhash_provider/md5_hmac.c b/src/lib/crypto/keyhash_provider/md5_hmac.c index 8c2591588..e8aea745c 100644 --- a/src/lib/crypto/keyhash_provider/md5_hmac.c +++ b/src/lib/crypto/keyhash_provider/md5_hmac.c @@ -54,6 +54,7 @@ k5_md5_hmac_hash (const krb5_keyblock *key, krb5_keyusage usage, krb5_MD5Update(&ctx, (unsigned char *)input->data, input->length); krb5_MD5Final(&ctx); + ds.magic = KV5M_DATA; ds.length = 16; ds.data = (char *)ctx.digest; |