svn commit: r294193 - stable/10/crypto/openssh

Dag-Erling Smørgrav des at FreeBSD.org
Sat Jan 16 20:07:02 UTC 2016


Author: des
Date: Sat Jan 16 20:07:01 2016
New Revision: 294193
URL: https://svnweb.freebsd.org/changeset/base/294193

Log:
  MFH (r292408): use correct length in calloc() call

Modified:
  stable/10/crypto/openssh/digest-libc.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/crypto/openssh/digest-libc.c
==============================================================================
--- stable/10/crypto/openssh/digest-libc.c	Sat Jan 16 19:48:03 2016	(r294192)
+++ stable/10/crypto/openssh/digest-libc.c	Sat Jan 16 20:07:01 2016	(r294193)
@@ -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-all mailing list