diff --git a/lib/crypto_backend/pbkdf_check.c b/lib/crypto_backend/pbkdf_check.c index f85bbfbe..823ef5fb 100644 --- a/lib/crypto_backend/pbkdf_check.c +++ b/lib/crypto_backend/pbkdf_check.c @@ -71,7 +71,7 @@ int crypt_pbkdf_check(const char *kdf, const char *hash, return -ENOMEM; iterations = 1 << 15; - while (ms < 500) { + while (1) { if (getrusage(RUSAGE_SELF, &rstart) < 0) { r = -EINVAL; goto out;