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