summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViktor Dkhovni <viktor@openssl.org>2015-01-23 15:39:40 -0500
committerRich Salz <rsalz@openssl.org>2015-01-27 16:36:25 -0500
commit324a9774928c362083ab581cbc9052ac0b787283 (patch)
tree2c30b472eb65c30ad4be868c6871abcb00da25e3
parent69aeb99f3277e97754a98285f8b92cf54dafd256 (diff)
downloadopenssl-new-324a9774928c362083ab581cbc9052ac0b787283.tar.gz
Replace exit() with error return.
Reviewed-by: Tim Hudson <tjh@openssl.org>
-rw-r--r--crypto/engine/eng_rsax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/engine/eng_rsax.c b/crypto/engine/eng_rsax.c
index 8362754c7a..86ee9d8939 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 */