aboutsummaryrefslogtreecommitdiff
path: root/test/src/exhaustive/test_brainpool.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/exhaustive/test_brainpool.c')
-rw-r--r--test/src/exhaustive/test_brainpool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/src/exhaustive/test_brainpool.c b/test/src/exhaustive/test_brainpool.c
index d5fefe2..80c11e3 100644
--- a/test/src/exhaustive/test_brainpool.c
+++ b/test/src/exhaustive/test_brainpool.c
@@ -75,7 +75,7 @@ Test(brainpool, test_brainpool_field) {
int ret = brainpool_gen_field(&curve, NULL, OFFSET_FIELD);
cr_assert_eq(ret, 1, );
cr_assert_not_null(curve.field, );
- cr_assert(isprime(curve.field), );
+ cr_assert(isprime(gcopy(curve.field)), );
cr_assert_eq(mod4(curve.field), 3, );
}