projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed public range check in ec_GF2m_simple_oct2point
[openssl.git]
/
crypto
/
ec
/
ec_mult.c
diff --git
a/crypto/ec/ec_mult.c
b/crypto/ec/ec_mult.c
index 9b0aac2313bac9f2c0d4f7c1375deb951455e492..755d64400a18269768c73ddb551978d82cf12c64 100644
(file)
--- a/
crypto/ec/ec_mult.c
+++ b/
crypto/ec/ec_mult.c
@@
-378,7
+378,7
@@
int ec_scalar_mul_ladder(const EC_GROUP *group, EC_POINT *r,
err:
EC_POINT_free(p);
- EC_POINT_free(s);
+ EC_POINT_
clear_
free(s);
BN_CTX_end(ctx);
return ret;
@@
-948,8
+948,7
@@
int ec_wNAF_precompute_mult(EC_GROUP *group, BN_CTX *ctx)
ret = 1;
err:
- if (ctx != NULL)
- BN_CTX_end(ctx);
+ BN_CTX_end(ctx);
BN_CTX_free(new_ctx);
EC_ec_pre_comp_free(pre_comp);
if (points) {