X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fx509%2Fx509_vfy.c;h=f60054bd398dff568da2b80f9e580bd06cecae1c;hp=552d1e72516ea191cb78f0d2269dfc6a0d8f9d4a;hb=50078051bd1c63b04ff4842965081eb65db0421e;hpb=db01746978cbc383a55b58e8f9441452a0cb5964 diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index 552d1e7251..f60054bd39 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 = 0; - else last = sk_X509_num(ctx->chain) - 1; + else + last = 0; for(i = 0; i <= last; i++) { ctx->error_depth = i;