summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/krb/combine_keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/crypto/krb/combine_keys.c')
-rw-r--r--src/lib/crypto/krb/combine_keys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/crypto/krb/combine_keys.c b/src/lib/crypto/krb/combine_keys.c
index d9235dd73..0c44e8b43 100644
--- a/src/lib/crypto/krb/combine_keys.c
+++ b/src/lib/crypto/krb/combine_keys.c
@@ -110,7 +110,7 @@ krb5int_c_combine_keys(krb5_context context, krb5_keyblock *key1,
rnd = k5alloc(keybytes, &ret);
if (ret)
goto cleanup;
- combined = k5alloc(keybytes * 2, &ret);
+ combined = k5calloc(2, keybytes, &ret);
if (ret)
goto cleanup;
output = k5alloc(keylength, &ret);