PR: 1967
authorDr. Stephen Henson <steve@openssl.org>
Tue, 30 Jun 2009 15:10:54 +0000 (15:10 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 30 Jun 2009 15:10:54 +0000 (15:10 +0000)
Submitted by: David McCullough <david_mccullough@securecomputing.com>
Approved by: steve@openssl.org

Don't go past end of params array.

crypto/engine/eng_cryptodev.c

index ab38cd5..4f2470b 100644 (file)
@@ -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;