From: Richard Levitte Date: Wed, 24 Jul 2002 14:42:38 +0000 (+0000) Subject: Don't clobber loop variable. X-Git-Tag: OpenSSL_0_9_7-beta3~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4289131ae69109c6f15cfe68bbd56c97d19e0cbc;p=oweals%2Fopenssl.git Don't clobber loop variable. PR: 159 --- diff --git a/crypto/pkcs7/verify.c b/crypto/pkcs7/verify.c index 5f7afe8933..b40f26032e 100644 --- a/crypto/pkcs7/verify.c +++ b/crypto/pkcs7/verify.c @@ -179,10 +179,11 @@ char *argv[]; { ASN1_UTCTIME *tm; char *str1,*str2; + int rc; si=sk_PKCS7_SIGNER_INFO_value(sk,i); - i=PKCS7_dataVerify(cert_store,&cert_ctx,p7bio,p7,si); - if (i <= 0) + rc=PKCS7_dataVerify(cert_store,&cert_ctx,p7bio,p7,si); + if (rc <= 0) goto err; printf("signer info\n"); if ((tm=get_signed_time(si)) != NULL)