[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Fri Jan 23 20:40:13 UTC 2015


The branch master has been updated
       via  c963c421fb3d84ca3c86284593f0439f7c152f3e (commit)
      from  04f8bcf1960c1309e143718642611bb68479cbbf (commit)


- Log -----------------------------------------------------------------
commit c963c421fb3d84ca3c86284593f0439f7c152f3e
Author: Viktor Dkhovni <viktor at openssl.org>
Date:   Fri Jan 23 15:39:40 2015 -0500

    Replace exit() with error return.
    
    Reviewed-by: Tim Hudson <tjh at openssl.org>

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

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

diff --git a/crypto/engine/eng_rsax.c b/crypto/engine/eng_rsax.c
index 8362754..86ee9d8 100644
--- a/crypto/engine/eng_rsax.c
+++ b/crypto/engine/eng_rsax.c
@@ -434,10 +434,10 @@ static int mod_exp_pre_compute_data_512(UINT64 *m, struct mod_ctx_512 *data)
     BN_lshift(&two_512, BN_value_one(), 512);
 
     if (0 == (m[7] & 0x8000000000000000)) {
-        exit(1);
+        goto err;
     }
     if (0 == (m[0] & 0x1)) {    /* Odd modulus required for Mont */
-        exit(1);
+        goto err;
     }
 
     /* Precompute m1 */


More information about the openssl-commits mailing list