From 4943eca32b2f5d6dc4786ea18ebe87a85570c5a0 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 27 Oct 2009 00:22:50 +0000 Subject: [PATCH] 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 --- src/lib/crypto/krb/keyhash_provider/hmac_md5.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.26.2