diff options
author | Richard Levitte <levitte@openssl.org> | 2002-07-24 14:43:00 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-07-24 14:43:00 +0000 |
commit | 546405becec13c6f4b95a8f4da3794b3fd2a8992 (patch) | |
tree | 6d7243b1ec714892429a4f3328733dc13460d5dd /crypto/pkcs7 | |
parent | f013c7f2a6d6c6ab4695c11e47c7eba9fe09a84e (diff) |
Don't clobber loop variable.
PR: 159
Diffstat (limited to 'crypto/pkcs7')
-rw-r--r-- | crypto/pkcs7/verify.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) |