svn commit: r292408 - head/crypto/openssh
Dag-Erling Smørgrav
des at FreeBSD.org
Thu Dec 17 19:36:27 UTC 2015
Author: des
Date: Thu Dec 17 19:36:25 2015
New Revision: 292408
URL: https://svnweb.freebsd.org/changeset/base/292408
Log:
Incorrect length in calloc() call, already fixed upstream.
PR: 204769
Submitted by: David Binderman <dcb314 at hotmail.com>
MFC after: 1 week
Modified:
head/crypto/openssh/digest-libc.c
Modified: head/crypto/openssh/digest-libc.c
==============================================================================
--- head/crypto/openssh/digest-libc.c Thu Dec 17 18:44:30 2015 (r292407)
+++ head/crypto/openssh/digest-libc.c Thu Dec 17 19:36:25 2015 (r292408)
@@ -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);
More information about the svn-src-head
mailing list