[openssl] openssl-3.0 update
tomas at openssl.org
tomas at openssl.org
Fri Dec 17 07:53:10 UTC 2021
The branch openssl-3.0 has been updated
via e7d55e3b6b7b2ce43304b386d1c9b86e5f57fc91 (commit)
from 699dcc50ae0ef64815b00cb0b6d0b5f2d77ed530 (commit)
- Log -----------------------------------------------------------------
commit e7d55e3b6b7b2ce43304b386d1c9b86e5f57fc91
Author: Peiwei Hu <jlu.hpw at foxmail.com>
Date: Wed Dec 15 17:29:49 2021 +0800
test/cmp_vfy_test.c: free before return
Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17279)
(cherry picked from commit 869b7dd00046951efb06dbb13c052ff9d7c87113)
-----------------------------------------------------------------------
Summary of changes:
test/cmp_vfy_test.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test/cmp_vfy_test.c b/test/cmp_vfy_test.c
index a480090363..5aa6a008cc 100644
--- a/test/cmp_vfy_test.c
+++ b/test/cmp_vfy_test.c
@@ -51,11 +51,13 @@ static time_t test_time_valid = 0, test_time_after_expiration = 0;
static CMP_VFY_TEST_FIXTURE *set_up(const char *const test_case_name)
{
- X509_STORE *ts = X509_STORE_new();
+ X509_STORE *ts;
CMP_VFY_TEST_FIXTURE *fixture;
if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
return NULL;
+
+ ts = X509_STORE_new();
fixture->test_case_name = test_case_name;
if (ts == NULL
|| !TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(libctx, NULL))
More information about the openssl-commits
mailing list