author: Herbert Xu <herbert@gondor.apana.org.au> 2020-10-08 16:58:18 +1100
committer: Herbert Xu <herbert@gondor.apana.org.au> 2020-10-30 17:34:45 +1100
commit: d72286943212fdb6d254d08d4cfccdc70603d0ca
parent: daf88f3757ecb7aed4dd05a1ca8c8b4ac378d6c3
Commit Summary:
Diffstat:
1 file changed, 0 insertions, 3 deletions
diff --git a/lib/mpi/ec.c b/lib/mpi/ec.c
index c21470122dfc..40f5908e57a4 100644
--- a/lib/mpi/ec.c
+++ b/lib/mpi/ec.c
@@ -1252,7 +1252,6 @@ void mpi_ec_mul_point(MPI_POINT result,
MPI_POINT q1, q2, prd, sum;
unsigned long sw;
mpi_size_t rsize;
- int scalar_copied = 0;
/* Compute scalar point multiplication with Montgomery Ladder.
* Note that we don't use Y-coordinate in the points at all.
@@ -1314,8 +1313,6 @@ void mpi_ec_mul_point(MPI_POINT result,
point_free(&p2);
point_free(&p1_);
point_free(&p2_);
- if (scalar_copied)
- mpi_free(scalar);
return;
}