Submitted by: David McCullough <david_mccullough@securecomputing.com>
Approved by: steve@openssl.org

Don't go past end of params array.
This commit is contained in:
Dr. Stephen Henson 2009-06-30 15:10:54 +00:00
parent 6e07229564
commit 3e70c81ed9

View 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;