summaryrefslogtreecommitdiffstats
path: root/crypto/engine
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-07-01 11:39:59 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-07-01 11:39:59 +0000
commitb8555601922bce57077a9691cb3bcc31735ee300 (patch)
tree51b7c661a00ba1aa9a8ec34fd649c5c436c5f806 /crypto/engine
parentf2f50efea38cc58b7622d8093979332b568b9f4e (diff)
PR: 1970
Submitted by: David McCullough <david_mccullough@securecomputing.com> Reviewed by: steve@openssl.org Fix unused variable "words" and uninitialised data "b".
Diffstat (limited to 'crypto/engine')
-rw-r--r--crypto/engine/eng_cryptodev.c3
1 files changed, 2 insertions, 1 deletions
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;