Skip to content

Commit 52b28b2

Browse files
committed
Fix memory issue.
1 parent 81df9e8 commit 52b28b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/epx/relic_ep4_curve.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,8 @@ void ep4_curve_set_super(void) {
551551
fp4_frb(a, a, 1);
552552
fp4_mul(a, a, b);
553553
fp4_inv(a, a);
554-
fp2_copy(ctx->fp4_p1, a[0]);
554+
fp_copy(ctx->fp4_p1[0], a[0][0]);
555+
fp_copy(ctx->fp4_p1[1], a[0][1]);
555556

556557
#if defined(WITH_PC)
557558
/* Compute pairing generator. */

0 commit comments

Comments
 (0)