From: Ezra Peisach Date: Tue, 27 Oct 2009 00:22:50 +0000 (+0000) Subject: with an uninitialized entry on error exit X-Git-Tag: krb5-1.8-alpha1~262 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4943eca32b2f5d6dc4786ea18ebe87a85570c5a0;p=krb5.git with an uninitialized entry on error exit k5_hmac_md5_hash_iov: Initialize keyblock.length - so we do not invoke zapfree git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23059 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/krb/keyhash_provider/hmac_md5.c b/src/lib/crypto/krb/keyhash_provider/hmac_md5.c index ad29d2849..c1825be6a 100644 --- a/src/lib/crypto/krb/keyhash_provider/hmac_md5.c +++ b/src/lib/crypto/krb/keyhash_provider/hmac_md5.c @@ -104,6 +104,7 @@ k5_hmac_md5_hash_iov (krb5_key key, krb5_keyusage usage, size_t i; keyblock.contents = NULL; + keyblock.length = 0; ds.length = key->keyblock.length; ds.data = malloc(ds.length);