aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/crypto/krb/keyhash_provider/hmac_md5.c2
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)