[openssl-commits] [openssl] OpenSSL_1_1_1-stable update

Matt Caswell matt at openssl.org
Sun Jan 27 12:23:27 UTC 2019


The branch OpenSSL_1_1_1-stable has been updated
       via  eae1c647dfc9c39db52f7c4a61faa09e6cbea92a (commit)
      from  24020351dc2f1565347a93ad60d70b065415c84f (commit)


- Log -----------------------------------------------------------------
commit eae1c647dfc9c39db52f7c4a61faa09e6cbea92a
Author: David Asraf <dasraf9 at gmail.com>
Date:   Wed Jan 23 11:10:11 2019 +0000

    crypto/bn: fix return value in BN_generate_prime
    
    When the ret parameter is NULL the generated prime
    is in rnd variable and not in ret.
    
    CLA: trivial
    
    Reviewed-by: Nicola Tuveri <nic.tuv at gmail.com>
    Reviewed-by: Paul Dale <paul.dale at oracle.com>
    Reviewed-by: Matt Caswell <matt at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/8076)
    
    (cherry picked from commit 3d43f9c809e42b960be94f2f4490d6d14e063486)

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

Summary of changes:
 crypto/bn/bn_depr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/bn/bn_depr.c b/crypto/bn/bn_depr.c
index 7d89214..46ee0e9 100644
--- a/crypto/bn/bn_depr.c
+++ b/crypto/bn/bn_depr.c
@@ -40,7 +40,7 @@ BIGNUM *BN_generate_prime(BIGNUM *ret, int bits, int safe,
         goto err;
 
     /* we have a prime :-) */
-    return ret;
+    return rnd;
  err:
     BN_free(rnd);
     return NULL;


More information about the openssl-commits mailing list