diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2003-03-24 16:58:01 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2003-03-24 16:58:01 +0000 |
commit | 1e2b14e9ca547cd21c6e8497a24cfb77beebf10f (patch) | |
tree | 6bda0e82fd850f988f0047cab3e0bc935834445e /crypto/x509 | |
parent | 4fe70c78129284a5a5a192029a51d953d3a2473b (diff) |
Get X509_V_FLAG_CRL_CHECK_ALL logic the right way round.
PR:544
Diffstat (limited to 'crypto/x509')
-rw-r--r-- | crypto/x509/x509_vfy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index f60054bd39..552d1e7251 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -453,9 +453,9 @@ static int check_revocation(X509_STORE_CTX *ctx) if (!(ctx->flags & X509_V_FLAG_CRL_CHECK)) return 1; if (ctx->flags & X509_V_FLAG_CRL_CHECK_ALL) - last = sk_X509_num(ctx->chain) - 1; - else last = 0; + else + last = sk_X509_num(ctx->chain) - 1; for(i = 0; i <= last; i++) { ctx->error_depth = i; |