From 0a0682484a5a56bf03288a90137c06ea144743e7 Mon Sep 17 00:00:00 2001 From: des Date: Thu, 17 Dec 2015 19:36:25 +0000 Subject: Incorrect length in calloc() call, already fixed upstream. PR: 204769 Submitted by: David Binderman MFC after: 1 week --- crypto/openssh/digest-libc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto') 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); -- cgit v1.1