Date: Mon, 3 Oct 2016 08:15:58 +0000 (UTC) From: =?UTF-8?Q?Dag-Erling_Sm=c3=b8rgrav?= <des@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r306623 - stable/9/crypto/openssh Message-ID: <201610030815.u938FwX2010091@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: des Date: Mon Oct 3 08:15:58 2016 New Revision: 306623 URL: https://svnweb.freebsd.org/changeset/base/306623 Log: MFH (r292408): use correct length in calloc() call Modified: stable/9/crypto/openssh/digest-libc.c Directory Properties: stable/9/ (props changed) stable/9/crypto/openssh/ (props changed) Modified: stable/9/crypto/openssh/digest-libc.c ============================================================================== --- stable/9/crypto/openssh/digest-libc.c Mon Oct 3 04:00:30 2016 (r306622) +++ stable/9/crypto/openssh/digest-libc.c Mon Oct 3 08:15:58 2016 (r306623) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610030815.u938FwX2010091>