summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2016-01-16 20:07:01 +0000
committerdes <des@FreeBSD.org>2016-01-16 20:07:01 +0000
commit94a89cd8e87abdc1e551e8ad44c963fd5247eebd (patch)
tree633db93fd79ff88bb66d0188481c61c98bae4317
parent5e1cc08a89aa7ec23c6c934d6a6b41065bd9ac72 (diff)
downloadFreeBSD-src-94a89cd8e87abdc1e551e8ad44c963fd5247eebd.zip
FreeBSD-src-94a89cd8e87abdc1e551e8ad44c963fd5247eebd.tar.gz
MFH (r292408): use correct length in calloc() call
-rw-r--r--crypto/openssh/digest-libc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssh/digest-libc.c b/crypto/openssh/digest-libc.c
index 1804b06..9377c77 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);
OpenPOWER on IntegriCloud