summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/rsa/rsa_crpt.c7
-rw-r--r--src/lib/libssl/src/crypto/rsa/rsa_crpt.c7
2 files changed, 2 insertions, 12 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_crpt.c b/src/lib/libcrypto/rsa/rsa_crpt.c
index 5edd2d7c5c..5de69a6fb5 100644
--- a/src/lib/libcrypto/rsa/rsa_crpt.c
+++ b/src/lib/libcrypto/rsa/rsa_crpt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_crpt.c,v 1.8 2014/07/10 11:35:31 jsing Exp $ */ 1/* $OpenBSD: rsa_crpt.c,v 1.9 2014/07/10 12:36:58 miod Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -177,11 +177,6 @@ RSA_setup_blinding(RSA *rsa, BN_CTX *in_ctx)
177 ctx = in_ctx; 177 ctx = in_ctx;
178 178
179 BN_CTX_start(ctx); 179 BN_CTX_start(ctx);
180 e = BN_CTX_get(ctx);
181 if (e == NULL) {
182 RSAerr(RSA_F_RSA_SETUP_BLINDING, ERR_R_MALLOC_FAILURE);
183 goto err;
184 }
185 180
186 if (rsa->e == NULL) { 181 if (rsa->e == NULL) {
187 e = rsa_get_public_exp(rsa->d, rsa->p, rsa->q, ctx); 182 e = rsa_get_public_exp(rsa->d, rsa->p, rsa->q, ctx);
diff --git a/src/lib/libssl/src/crypto/rsa/rsa_crpt.c b/src/lib/libssl/src/crypto/rsa/rsa_crpt.c
index 5edd2d7c5c..5de69a6fb5 100644
--- a/src/lib/libssl/src/crypto/rsa/rsa_crpt.c
+++ b/src/lib/libssl/src/crypto/rsa/rsa_crpt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa_crpt.c,v 1.8 2014/07/10 11:35:31 jsing Exp $ */ 1/* $OpenBSD: rsa_crpt.c,v 1.9 2014/07/10 12:36:58 miod Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -177,11 +177,6 @@ RSA_setup_blinding(RSA *rsa, BN_CTX *in_ctx)
177 ctx = in_ctx; 177 ctx = in_ctx;
178 178
179 BN_CTX_start(ctx); 179 BN_CTX_start(ctx);
180 e = BN_CTX_get(ctx);
181 if (e == NULL) {
182 RSAerr(RSA_F_RSA_SETUP_BLINDING, ERR_R_MALLOC_FAILURE);
183 goto err;
184 }
185 180
186 if (rsa->e == NULL) { 181 if (rsa->e == NULL) {
187 e = rsa_get_public_exp(rsa->d, rsa->p, rsa->q, ctx); 182 e = rsa_get_public_exp(rsa->d, rsa->p, rsa->q, ctx);