diff options
author | Greg Hudson <ghudson@mit.edu> | 2009-10-20 13:49:48 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2009-10-20 13:49:48 +0000 |
commit | aaaa9173cf4bf6f1b96155e8128434cfca88e31f (patch) | |
tree | 19e7945dcd5b75e68da52204bd45918c6ad68711 /src | |
parent | dd3c61e969734b1f68c925268bd9980d5bce19c1 (diff) | |
download | krb5-aaaa9173cf4bf6f1b96155e8128434cfca88e31f.zip krb5-aaaa9173cf4bf6f1b96155e8128434cfca88e31f.tar.gz krb5-aaaa9173cf4bf6f1b96155e8128434cfca88e31f.tar.bz2 |
In k5_hmac_md5_hash_iov, initialize keyblock.contents so that we don't
free it prior to initialization if krb5_hmac fails.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22953 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/crypto/krb/keyhash_provider/hmac_md5.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/crypto/krb/keyhash_provider/hmac_md5.c b/src/lib/crypto/krb/keyhash_provider/hmac_md5.c index 61c6d8c..ad29d28 100644 --- a/src/lib/crypto/krb/keyhash_provider/hmac_md5.c +++ b/src/lib/crypto/krb/keyhash_provider/hmac_md5.c @@ -103,6 +103,8 @@ k5_hmac_md5_hash_iov (krb5_key key, krb5_keyusage usage, char t[4]; size_t i; + keyblock.contents = NULL; + ds.length = key->keyblock.length; ds.data = malloc(ds.length); if (ds.data == NULL) |