Update from head.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 16 Jun 2005 02:05:57 +0000 (02:05 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 16 Jun 2005 02:05:57 +0000 (02:05 +0000)
crypto/x509/x509_vfy.c

index a4a142cd013fbe20f50952b324fe36298835d257..79dae3d3bf23702b009864bf9d37f03a95eba9e5 100644 (file)
@@ -776,7 +776,8 @@ static int check_crl(X509_STORE_CTX *ctx, X509_CRL *crl)
                        }
                }
 
-       if (!check_crl_time(ctx, crl, 1))
+       ok = check_crl_time(ctx, crl, 1);
+       if (!ok)
                goto err;
 
        ok = 1;
@@ -1006,7 +1007,8 @@ static int internal_verify(X509_STORE_CTX *ctx)
 
                xs->valid = 1;
 
-               if (!check_cert_time(ctx, xs))
+               ok = check_cert_time(ctx, xs);
+               if (!ok)
                        goto end;
 
                /* The last error (if any) is still in the error value */