mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
Incorrect length in calloc() call, already fixed upstream.
PR: 204769 Submitted by: David Binderman <dcb314@hotmail.com> MFC after: 1 week
This commit is contained in:
parent
8d7e7a98db
commit
22f393c35d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=292408
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue