[openssl] OpenSSL_1_1_1-stable update
tomas at openssl.org
tomas at openssl.org
Fri Oct 15 06:57:03 UTC 2021
The branch OpenSSL_1_1_1-stable has been updated
via 2f8b8045e6b9a7780873c28c569a8a6388e11306 (commit)
from bf07844312caf4ac251f5303993230c254e7c771 (commit)
- Log -----------------------------------------------------------------
commit 2f8b8045e6b9a7780873c28c569a8a6388e11306
Author: Peiwei Hu <jlu.hpw at foxmail.com>
Date: Tue Oct 12 10:50:12 2021 +0800
test/ssl_old_test.c: Fix potential leak
Reviewed-by: Kurt Roeckx <kurt at roeckx.be>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16806)
(cherry picked from commit 34563be5368fb8e6ade7d06d8376522ba83cd6ac)
-----------------------------------------------------------------------
Summary of changes:
test/ssltest_old.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test/ssltest_old.c b/test/ssltest_old.c
index cc98e4f866..b6e21e4e18 100644
--- a/test/ssltest_old.c
+++ b/test/ssltest_old.c
@@ -841,12 +841,14 @@ static SSL_SESSION *read_session(const char *filename)
static int write_session(const char *filename, SSL_SESSION *sess)
{
- BIO *f = BIO_new_file(filename, "w");
+ BIO *f;
if (sess == NULL) {
BIO_printf(bio_err, "No session information\n");
return 0;
}
+
+ f = BIO_new_file(filename, "w");
if (f == NULL) {
BIO_printf(bio_err, "Can't open session file %s\n", filename);
ERR_print_errors(bio_err);
More information about the openssl-commits
mailing list