projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2f50ef
)
PR: 1970
author
Dr. Stephen Henson
<steve@openssl.org>
Wed, 1 Jul 2009 11:39:59 +0000
(11:39 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 1 Jul 2009 11:39:59 +0000
(11:39 +0000)
Submitted by: David McCullough <david_mccullough@securecomputing.com>
Reviewed by: steve@openssl.org
Fix unused variable "words" and uninitialised data "b".
crypto/engine/eng_cryptodev.c
patch
|
blob
|
history
diff --git
a/crypto/engine/eng_cryptodev.c
b/crypto/engine/eng_cryptodev.c
index 22599163ac655701557ecd07054b15ab4c149d60..16afaf7fa3c5b60ee54fbc68648d76a0e6673c6b 100644
(file)
--- 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;