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

bernd.edlinger at hotmail.de bernd.edlinger at hotmail.de
Wed Nov 7 14:18:49 UTC 2018


The branch OpenSSL_1_1_1-stable has been updated
       via  9bc987f0086052a03982694e0ef69e9617a2b2dc (commit)
      from  4274ef97c1300d1924c537b7d4c91bb8494a5de2 (commit)


- Log -----------------------------------------------------------------
commit 9bc987f0086052a03982694e0ef69e9617a2b2dc
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date:   Tue Oct 30 23:09:56 2018 +0100

    Initialize reseed_gen_counter to 1, like it is done in master
    
    Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre at ncp-e.com>
    Reviewed-by: Paul Dale <paul.dale at oracle.com>
    (Merged from https://github.com/openssl/openssl/pull/7532)

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

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

diff --git a/crypto/rand/drbg_lib.c b/crypto/rand/drbg_lib.c
index d9f01cb..de4f333 100644
--- a/crypto/rand/drbg_lib.c
+++ b/crypto/rand/drbg_lib.c
@@ -359,7 +359,7 @@ int RAND_DRBG_instantiate(RAND_DRBG *drbg,
     }
 
     drbg->state = DRBG_READY;
-    drbg->reseed_gen_counter = 0;
+    drbg->reseed_gen_counter = 1;
     drbg->reseed_time = time(NULL);
     tsan_store(&drbg->reseed_prop_counter, drbg->reseed_next_counter);
 
@@ -451,7 +451,7 @@ int RAND_DRBG_reseed(RAND_DRBG *drbg,
         goto end;
 
     drbg->state = DRBG_READY;
-    drbg->reseed_gen_counter = 0;
+    drbg->reseed_gen_counter = 1;
     drbg->reseed_time = time(NULL);
     tsan_store(&drbg->reseed_prop_counter, drbg->reseed_next_counter);
 


More information about the openssl-commits mailing list