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.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/ct_test.c b/test/ct_test.c
index ff253414f806..f98dd6060285 100644
--- a/test/ct_test.c
+++ b/test/ct_test.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2016-2024 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2016-2025 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
@@ -463,7 +463,11 @@ static int test_encode_tls_sct(void)
return 0;
}
- sk_SCT_push(fixture->sct_list, sct);
+ if (!sk_SCT_push(fixture->sct_list, sct)) {
+ tear_down(fixture);
+ return 0;
+ }
+
fixture->sct_dir = ct_dir;
fixture->sct_text_file = "tls1.sct";
EXECUTE_CT_TEST();