[openssl] OpenSSL_1_1_1-stable update

Dr. Paul Dale pauli at openssl.org
Fri Dec 13 03:40:42 UTC 2019


The branch OpenSSL_1_1_1-stable has been updated
       via  5fe82100857ff194e5728bafe9af1a27c9d5475c (commit)
      from  7a930005adc470ffaa49dbef04010e77d76e0363 (commit)


- Log -----------------------------------------------------------------
commit 5fe82100857ff194e5728bafe9af1a27c9d5475c
Author: kinichiro <kinichiro.inoguchi at gmail.com>
Date:   Wed Dec 11 21:12:53 2019 +0900

    Check return value after loading config file
    
    CLA: trivial
    
    Reviewed-by: Paul Yang <kaishen.yy at antfin.com>
    Reviewed-by: Paul Dale <paul.dale at oracle.com>
    (Merged from https://github.com/openssl/openssl/pull/10607)
    
    (cherry picked from commit dd0139f416257ec5632414ed3ad8c61d07ba07ec)

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

Summary of changes:
 apps/req.c | 6 ++++--
 apps/ts.c  | 3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/apps/req.c b/apps/req.c
index f9d6fba109..d717c493e5 100644
--- a/apps/req.c
+++ b/apps/req.c
@@ -435,12 +435,14 @@ int req_main(int argc, char **argv)
 
     if (verbose)
         BIO_printf(bio_err, "Using configuration from %s\n", template);
-    req_conf = app_load_config(template);
+    if ((req_conf = app_load_config(template)) == NULL)
+        goto end;
     if (addext_bio) {
         if (verbose)
             BIO_printf(bio_err,
                        "Using additional configuration from command line\n");
-        addext_conf = app_load_config_bio(addext_bio, NULL);
+        if ((addext_conf = app_load_config_bio(addext_bio, NULL)) == NULL)
+            goto end;
     }
     if (template != default_config_file && !app_load_modules(req_conf))
         goto end;
diff --git a/apps/ts.c b/apps/ts.c
index 930c1daaab..44a8f75d4a 100644
--- a/apps/ts.c
+++ b/apps/ts.c
@@ -282,7 +282,8 @@ int ts_main(int argc, char **argv)
         goto end;
     }
 
-    conf = load_config_file(configfile);
+    if ((conf = load_config_file(configfile)) == NULL)
+        goto end;
     if (configfile != default_config_file && !app_load_modules(conf))
         goto end;
 


More information about the openssl-commits mailing list