[openssl] master update

tomas at openssl.org tomas at openssl.org
Wed Oct 27 09:05:50 UTC 2021


The branch master has been updated
       via  f541419c792600f6ebe476168587d2a1436d87a3 (commit)
      from  fd19fc4c2726b08282b8db15f9bace2f04712498 (commit)


- Log -----------------------------------------------------------------
commit f541419c792600f6ebe476168587d2a1436d87a3
Author: Jiasheng Jiang <jiasheng at iscas.ac.cn>
Date:   Tue Oct 26 02:49:02 2021 +0000

    Remove unused variable 'sctx'
    
    In the openssl-3.0.0 and system provided, the variable 'sctx' is unused in test_509_dup_cert.
    Therefore, it might be better to remove the definition and operation of it.
    
    CLA: trivial
    
    Reviewed-by: Paul Dale <pauli at openssl.org>
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/16916)

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

Summary of changes:
 test/x509_dup_cert_test.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/test/x509_dup_cert_test.c b/test/x509_dup_cert_test.c
index af35afbe0c..b09de70a8a 100644
--- a/test/x509_dup_cert_test.c
+++ b/test/x509_dup_cert_test.c
@@ -17,7 +17,6 @@
 static int test_509_dup_cert(int n)
 {
     int ret = 0;
-    X509_STORE_CTX *sctx = NULL;
     X509_STORE *store = NULL;
     X509_LOOKUP *lookup = NULL;
     const char *cert_f = test_get_argument(n);
@@ -28,7 +27,6 @@ static int test_509_dup_cert(int n)
         && TEST_true(X509_load_cert_file(lookup, cert_f, X509_FILETYPE_PEM)))
         ret = 1;
 
-    X509_STORE_CTX_free(sctx);
     X509_STORE_free(store);
     return ret;
 }


More information about the openssl-commits mailing list