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 <dcb...@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); _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"