[openssl] master update

Dr. Paul Dale pauli at openssl.org
Fri Mar 19 09:52:07 UTC 2021


The branch master has been updated
       via  39f6bf33e5852be55b126c3fcc56e3ef5ab1a584 (commit)
      from  ebdb5cccde44d3d1a17b4284b2b6e0ed39a71faf (commit)


- Log -----------------------------------------------------------------
commit 39f6bf33e5852be55b126c3fcc56e3ef5ab1a584
Author: Pauli <ppzgs1 at gmail.com>
Date:   Thu Mar 18 14:08:06 2021 +1000

    test: fix Coverity 1454818: use after free
    
    Reviewed-by: Shane Lontis <shane.lontis at oracle.com>
    (Merged from https://github.com/openssl/openssl/pull/14597)

-----------------------------------------------------------------------

Summary of changes:
 test/cipherlist_test.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/cipherlist_test.c b/test/cipherlist_test.c
index 380f0727fc..9739cb58c4 100644
--- a/test/cipherlist_test.c
+++ b/test/cipherlist_test.c
@@ -205,8 +205,10 @@ static int test_default_cipherlist_explicit(void)
 {
     SETUP_CIPHERLIST_TEST_FIXTURE();
     if (!TEST_true(SSL_CTX_set_cipher_list(fixture->server, "DEFAULT"))
-            || !TEST_true(SSL_CTX_set_cipher_list(fixture->client, "DEFAULT")))
+            || !TEST_true(SSL_CTX_set_cipher_list(fixture->client, "DEFAULT"))) {
         tear_down(fixture);
+        fixture = NULL;
+    }
     EXECUTE_CIPHERLIST_TEST();
     return result;
 }


More information about the openssl-commits mailing list