aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/utils/gmp_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/utils/gmp_helper.c')
-rw-r--r--Source/charon/utils/gmp_helper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/charon/utils/gmp_helper.c b/Source/charon/utils/gmp_helper.c
index 6d6ddc52b..d9e2ec9f1 100644
--- a/Source/charon/utils/gmp_helper.c
+++ b/Source/charon/utils/gmp_helper.c
@@ -130,6 +130,7 @@ static status_t init_prime (private_gmp_helper_t *this, mpz_t *prime, int bytes)
allocator_free(random_bytes.ptr);
random_bytes.ptr = NULL;
+ /* composites are possible but should never occur */
mpz_nextprime (*(prime),*(prime));
return SUCCESS;