summaryrefslogtreecommitdiffstats
path: root/crypto/engine
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-06-30 15:10:54 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-06-30 15:10:54 +0000
commit3e70c81ed9f54353d2fec4e5ef163c3810d58acf (patch)
tree9fb6b39bb1b3aca635d024653b0d9eb7b7fe6acf /crypto/engine
parent6e07229564fb50843408c9e2aa475c19dcd6ba81 (diff)
PR: 1967
Submitted by: David McCullough <david_mccullough@securecomputing.com> Approved by: steve@openssl.org Don't go past end of params array.
Diffstat (limited to 'crypto/engine')
-rw-r--r--crypto/engine/eng_cryptodev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c
index ab38cd52f0..4f2470b3f5 100644
--- a/crypto/engine/eng_cryptodev.c
+++ b/crypto/engine/eng_cryptodev.c
@@ -681,7 +681,7 @@ zapparams(struct crypt_kop *kop)
{
int i;
- for (i = 0; i <= kop->crk_iparams + kop->crk_oparams; i++) {
+ for (i = 0; i < kop->crk_iparams + kop->crk_oparams; i++) {
if (kop->crk_param[i].crp_p)
free(kop->crk_param[i].crp_p);
kop->crk_param[i].crp_p = NULL;