diff options
author | Greg Hudson <ghudson@mit.edu> | 2013-07-11 20:39:51 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2013-07-11 20:39:51 -0400 |
commit | 443ce5fef316e3dc324fe84557a06b069dbe33f9 (patch) | |
tree | 1aa5e33e71690fdbd4d3f7dc36ea3de8b82869df /src/lib/crypto/builtin/hmac.c | |
parent | 90f9f6f6708baff4de2162c5eb754bb4bc557845 (diff) | |
download | krb5-443ce5fef316e3dc324fe84557a06b069dbe33f9.tar.gz krb5-443ce5fef316e3dc324fe84557a06b069dbe33f9.tar.xz krb5-443ce5fef316e3dc324fe84557a06b069dbe33f9.zip |
Use k5calloc instead of k5alloc where appropriate
Wherever we use k5alloc with a multiplication in the size parameter,,
use the new k5calloc helper function instead.
Diffstat (limited to 'src/lib/crypto/builtin/hmac.c')
-rw-r--r-- | src/lib/crypto/builtin/hmac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/crypto/builtin/hmac.c b/src/lib/crypto/builtin/hmac.c index c697a76e8..95c8f5f4a 100644 --- a/src/lib/crypto/builtin/hmac.c +++ b/src/lib/crypto/builtin/hmac.c @@ -71,7 +71,7 @@ krb5int_hmac_keyblock(const struct krb5_hash_provider *hash, ihash = k5alloc(hash->hashsize, &ret); if (ihash == NULL) goto cleanup; - ihash_iov = k5alloc((num_data + 1) * sizeof(krb5_crypto_iov), &ret); + ihash_iov = k5calloc(num_data + 1, sizeof(krb5_crypto_iov), &ret); if (ihash_iov == NULL) goto cleanup; |