mirror of
https://github.com/openssl/openssl.git
synced 2024-12-15 06:01:37 +08:00
Moving notify check after the no time check
CLA: trivial Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19007)
This commit is contained in:
parent
c63e8637fd
commit
c92c3dfb99
@ -1018,14 +1018,14 @@ static int check_crl_time(X509_STORE_CTX *ctx, X509_CRL *crl, int notify)
|
||||
time_t *ptime;
|
||||
int i;
|
||||
|
||||
if (notify)
|
||||
ctx->current_crl = crl;
|
||||
if ((ctx->param->flags & X509_V_FLAG_USE_CHECK_TIME) != 0)
|
||||
ptime = &ctx->param->check_time;
|
||||
else if ((ctx->param->flags & X509_V_FLAG_NO_CHECK_TIME) != 0)
|
||||
return 1;
|
||||
else
|
||||
ptime = NULL;
|
||||
if (notify)
|
||||
ctx->current_crl = crl;
|
||||
|
||||
i = X509_cmp_time(X509_CRL_get0_lastUpdate(crl), ptime);
|
||||
if (i == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user