From b8555601922bce57077a9691cb3bcc31735ee300 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 1 Jul 2009 11:39:59 +0000 Subject: [PATCH] PR: 1970 Submitted by: David McCullough Reviewed by: steve@openssl.org Fix unused variable "words" and uninitialised data "b". --- crypto/engine/eng_cryptodev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c index 22599163ac..16afaf7fa3 100644 --- a/crypto/engine/eng_cryptodev.c +++ b/crypto/engine/eng_cryptodev.c @@ -625,7 +625,7 @@ static int bn2crparam(const BIGNUM *a, struct crparam *crp) { int i, j, k; - ssize_t words, bytes, bits; + ssize_t bytes, bits; u_char *b; crp->crp_p = NULL; @@ -637,6 +637,7 @@ bn2crparam(const BIGNUM *a, struct crparam *crp) b = malloc(bytes); if (b == NULL) return (1); + memset(b, 0, bytes); crp->crp_p = b; crp->crp_nbits = bits; -- 2.25.1