aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cm/cm_any.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cm/cm_any.c b/src/cm/cm_any.c
index 1739d80..6a65571 100644
--- a/src/cm/cm_any.c
+++ b/src/cm/cm_any.c
@@ -340,7 +340,7 @@ GENERATOR(cm_gen_curve_any) {
avma = ltop;
return -3;
}
- curve->field = min_d->p;
+ curve->field = gcopy(min_d->p);
curve->a = ell_get_a4(e);
curve->b = ell_get_a6(e);
curve->curve = e;
@@ -442,7 +442,7 @@ GENERATOR(cm_gen_curve_unique) {
return -3;
}
- curve->field = min_d->p;
+ curve->field = gcopy(min_d->p);
curve->a = ell_get_a4(e);
curve->b = ell_get_a6(e);
curve->curve = e;