projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c2d383
)
Initialize ds.magic in k5_md5_hmac_hash, to avoid harmlessly copying
author
Greg Hudson
<ghudson@mit.edu>
Fri, 23 Jan 2009 18:19:19 +0000
(18:19 +0000)
committer
Greg Hudson
<ghudson@mit.edu>
Fri, 23 Jan 2009 18:19:19 +0000
(18:19 +0000)
around its uninitialized value in krb5_hmac.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21787
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/crypto/keyhash_provider/md5_hmac.c
patch
|
blob
|
history
diff --git
a/src/lib/crypto/keyhash_provider/md5_hmac.c
b/src/lib/crypto/keyhash_provider/md5_hmac.c
index 8c2591588ac13ec1f8cbdff58848e04fa9f289b4..e8aea745cc5f0cfa292fe54a7ceebf0896c638ee 100644
(file)
--- 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;