diff options
author | Billy Brumley <bbrumley@gmail.com> | 2018-04-23 14:34:11 +0300 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-04-23 19:14:25 +0100 |
commit | 39df51522ba2e3773ae2f1d4df5a6031ef41c1ba (patch) | |
tree | d6ee2f27ceae3ac05c4b7ba0b701b08d2b53d2d3 /crypto/ec/ec_mult.c | |
parent | 736b31e5ea33166d89d5cff5774697d0c15d96bd (diff) |
Remove superfluous NULL checks. Add Andy's BN_FLG comment.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6009)
Diffstat (limited to 'crypto/ec/ec_mult.c')
-rw-r--r-- | crypto/ec/ec_mult.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/crypto/ec/ec_mult.c b/crypto/ec/ec_mult.c index 1ed7449228..0779e4f7bb 100644 --- a/crypto/ec/ec_mult.c +++ b/crypto/ec/ec_mult.c @@ -142,9 +142,6 @@ static int ec_mul_consttime(const EC_GROUP *group, EC_POINT *r, if (ctx == NULL && (ctx = new_ctx = BN_CTX_secure_new()) == NULL) goto err; - if ((group->order == NULL) || (group->field == NULL)) - goto err; - order_bits = BN_num_bits(group->order); s = EC_POINT_new(group); @@ -152,8 +149,6 @@ static int ec_mul_consttime(const EC_GROUP *group, EC_POINT *r, goto err; if (point == NULL) { - if (group->generator == NULL) - goto err; if (!EC_POINT_copy(s, group->generator)) goto err; } else { |