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 ab38cd52f09708d979b91a9182e1ef6d34f7bfd9..4f2470b3f561ae11d28efb12702da9b8279addb4 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;