[openssl] OpenSSL_1_1_1-stable update

kaishen.yy at antfin.com kaishen.yy at antfin.com
Mon Sep 30 05:41:18 UTC 2019


The branch OpenSSL_1_1_1-stable has been updated
       via  312674e5148a44843202040006f47fc374902f88 (commit)
      from  ea21f6f88e4699d231f7ef51eb774f343b39d6ab (commit)


- Log -----------------------------------------------------------------
commit 312674e5148a44843202040006f47fc374902f88
Author: Paul Yang <kaishen.yy at antfin.com>
Date:   Mon Sep 30 11:33:24 2019 +0800

    Fix a return value bug in apps/speed.c
    
    Those functions returns less than and equal to 0 to indicate an error
    occured.
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/10054)
    
    (cherry picked from commit 94bd168a9e31d1ab4986e94056dfae71ec5f051f)

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

Summary of changes:
 apps/speed.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/apps/speed.c b/apps/speed.c
index 20149506cc..7f8ba7c096 100644
--- a/apps/speed.c
+++ b/apps/speed.c
@@ -3106,8 +3106,8 @@ int speed_main(int argc, char **argv)
 
             if ((ed_pctx = EVP_PKEY_CTX_new_id(test_ed_curves[testnum].nid, NULL))
                     == NULL
-                || !EVP_PKEY_keygen_init(ed_pctx)
-                || !EVP_PKEY_keygen(ed_pctx, &ed_pkey)) {
+                || EVP_PKEY_keygen_init(ed_pctx) <= 0
+                || EVP_PKEY_keygen(ed_pctx, &ed_pkey) <= 0) {
                 st = 0;
                 EVP_PKEY_CTX_free(ed_pctx);
                 break;


More information about the openssl-commits mailing list