aboutsummaryrefslogtreecommitdiff
path: root/test/ct_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/ct_test.c')
-rw-r--r--test/ct_test.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/ct_test.c b/test/ct_test.c
index 26d5bc108450..ff253414f806 100644
--- a/test/ct_test.c
+++ b/test/ct_test.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2016-2022 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2016-2024 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -450,13 +450,18 @@ static int test_encode_tls_sct(void)
fixture->sct_list = sk_SCT_new_null();
if (fixture->sct_list == NULL)
- return 0;
+ {
+ tear_down(fixture);
+ return 0;
+ }
if (!TEST_ptr(sct = SCT_new_from_base64(SCT_VERSION_V1, log_id,
CT_LOG_ENTRY_TYPE_X509, timestamp,
extensions, signature)))
-
+ {
+ tear_down(fixture);
return 0;
+ }
sk_SCT_push(fixture->sct_list, sct);
fixture->sct_dir = ct_dir;