summaryrefslogtreecommitdiff
path: root/lib/gnutls_pk.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gnutls_pk.c')
-rw-r--r--lib/gnutls_pk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_pk.c b/lib/gnutls_pk.c
index 981d63cb2b..88e4a1ff27 100644
--- a/lib/gnutls_pk.c
+++ b/lib/gnutls_pk.c
@@ -532,7 +532,7 @@ _generate_params (int algo, bigint_t * resarr, unsigned int *resarr_len,
return ret;
}
- if (resarr && resarr_len && *resarr_len > params.params_nr)
+ if (resarr && resarr_len && *resarr_len >= params.params_nr)
{
*resarr_len = params.params_nr;
for (i = 0; i < params.params_nr; i++)