Replace exit() with error return.
authorViktor Dkhovni <viktor@openssl.org>
Fri, 23 Jan 2015 20:39:40 +0000 (15:39 -0500)
committerRich Salz <rsalz@openssl.org>
Tue, 27 Jan 2015 21:36:25 +0000 (16:36 -0500)
Reviewed-by: Tim Hudson <tjh@openssl.org>
crypto/engine/eng_rsax.c

index 8362754c7a5279d01d22d1eefdf2660df7abf1f3..86ee9d89399544aadaffb1b732ddfa21ab885918 100644 (file)
@@ -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 */