summaryrefslogtreecommitdiffstats
path: root/fuzz/x509.c
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz/x509.c')
-rw-r--r--fuzz/x509.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fuzz/x509.c b/fuzz/x509.c
index e2d2639164..ce28e80728 100644
--- a/fuzz/x509.c
+++ b/fuzz/x509.c
@@ -115,12 +115,11 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len)
ASN1_GENERALIZEDTIME *revtime, *thisupd, *nextupd;
certs = sk_X509_new_null();
- if (certs == NULL)
+ if (certs == NULL
+ || !sk_X509_push(certs, x509_1)
+ || !sk_X509_push(certs, x509_2))
goto err;
- sk_X509_push(certs, x509_1);
- sk_X509_push(certs, x509_2);
-
OCSP_basic_verify(bs, certs, store, OCSP_PARTIAL_CHAIN);
id = OCSP_cert_to_id(NULL, x509_1, x509_2);