diff options
Diffstat (limited to 'lib/x509/pkcs7-crypt.c')
-rw-r--r-- | lib/x509/pkcs7-crypt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/x509/pkcs7-crypt.c b/lib/x509/pkcs7-crypt.c index c15752f995..45233acd8a 100644 --- a/lib/x509/pkcs7-crypt.c +++ b/lib/x509/pkcs7-crypt.c @@ -662,7 +662,7 @@ read_pbkdf2_params(ASN1_TYPE pasn, goto error; } - if (params->iter_count >= INT_MAX || params->iter_count == 0) { + if (params->iter_count >= MAX_ITER_COUNT || params->iter_count == 0) { result = gnutls_assert_val(GNUTLS_E_ILLEGAL_PARAMETER); goto error; } @@ -737,7 +737,7 @@ static int read_pkcs12_kdf_params(ASN1_TYPE pasn, struct pbkdf2_params *params) if (result < 0) return gnutls_assert_val(result); - if (params->iter_count >= INT_MAX || params->iter_count == 0) + if (params->iter_count >= MAX_ITER_COUNT || params->iter_count == 0) return gnutls_assert_val(GNUTLS_E_ILLEGAL_PARAMETER); _gnutls_hard_log("iterationCount: %d\n", params->iter_count); |