summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/crypto')
-rw-r--r--src/lib/crypto/krb/keyhash_provider/hmac_md5.c1
1 files changed, 1 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 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);