summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/passwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/passwd.c b/common/passwd.c
index 8b2daa6..4408e02 100644
--- a/common/passwd.c
+++ b/common/passwd.c
@@ -507,7 +507,7 @@ char *eurephia_pwd_crypt(eurephiaCTX *ctx, const char *key, const char *salt) {
loop++;
} while( ((rounds < minrounds) || (rounds > maxrounds)) && (loop < 1000)) ;
- if( loop > 10000 ) {
+ if( loop >= 1000 ) {
eurephia_log(ctx, LOG_FATAL, 0,
"Could not get a valid random number for hashing after %i rounds", 1000);
return NULL;