summaryrefslogtreecommitdiff
path: root/crypto/engine/eng_cryptodev.c
diff options
context:
space:
mode:
authorsteve <steve>2009-07-01 11:36:11 +0000
committersteve <steve>2009-07-01 11:36:11 +0000
commit224deae171673500d8130488e25b5085221f3d3d (patch)
tree5914d76ae5bcefcc09d168c080e09c8314e8ea91 /crypto/engine/eng_cryptodev.c
parent2ebfe56e634d4124d09fdba997911ca659f8b142 (diff)
downloadopenssl-224deae171673500d8130488e25b5085221f3d3d.tar.gz
Update from 1.0.0-stable
Diffstat (limited to 'crypto/engine/eng_cryptodev.c')
-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 22599163a..16afaf7fa 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;