Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Smith <brian@briansmith.org>2016-01-23 04:43:23 +0300
committerDavid Benjamin <davidben@google.com>2016-01-23 20:08:23 +0300
commit34749f47da6106fce8ac80d6a85e780a7cf22834 (patch)
treedf5e76f0240b223c31e0cefefbda06c8f517f28c /crypto/rsa
parent232127d24572c8622ca0ceddb742e09cd683077d (diff)
Remove unnecessary assignment of |e| in |rsa_setup_blinding|.
After its initial assignment, |e| is immediately reassigned another value and so the initial assignment from |BN_CTX_get| is useless. If that were not the case, then the |BN_free(e)| at the end of the function would be very bad. Change-Id: Id63a172073501c8ac157db9188a22f55ee36b205 Reviewed-on: https://boringssl-review.googlesource.com/6951 Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'crypto/rsa')
-rw-r--r--crypto/rsa/blinding.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/crypto/rsa/blinding.c b/crypto/rsa/blinding.c
index d21633f8..5addddc0 100644
--- a/crypto/rsa/blinding.c
+++ b/crypto/rsa/blinding.c
@@ -415,13 +415,6 @@ BN_BLINDING *rsa_setup_blinding(RSA *rsa, BN_CTX *in_ctx) {
ctx = in_ctx;
}
- BN_CTX_start(ctx);
- e = BN_CTX_get(ctx);
- if (e == NULL) {
- OPENSSL_PUT_ERROR(RSA, ERR_R_MALLOC_FAILURE);
- goto err;
- }
-
if (rsa->e == NULL) {
e = rsa_get_public_exp(rsa->d, rsa->p, rsa->q, ctx);
if (e == NULL) {
@@ -450,7 +443,6 @@ BN_BLINDING *rsa_setup_blinding(RSA *rsa, BN_CTX *in_ctx) {
}
err:
- BN_CTX_end(ctx);
if (in_ctx == NULL) {
BN_CTX_free(ctx);
}