From 8d8e7e9bc21a8511d15faf94d8f206f04abe936d Mon Sep 17 00:00:00 2001 From: des Date: Sat, 16 Jan 2016 20:07:01 +0000 Subject: [PATCH] MFH (r292408): use correct length in calloc() call git-svn-id: svn://svn.freebsd.org/base/stable/10@294193 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- crypto/openssh/digest-libc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/openssh/digest-libc.c b/crypto/openssh/digest-libc.c index 1804b0698..9377c774c 100644 --- a/crypto/openssh/digest-libc.c +++ b/crypto/openssh/digest-libc.c @@ -147,7 +147,7 @@ ssh_digest_start(int alg) const struct ssh_digest *digest = ssh_digest_by_alg(alg); struct ssh_digest_ctx *ret; - if (digest == NULL || (ret = calloc(1, sizeof(ret))) == NULL) + if (digest == NULL || (ret = calloc(1, sizeof(*ret))) == NULL) return NULL; if ((ret->mdctx = calloc(1, digest->ctx_len)) == NULL) { free(ret); -- 2.45.0