summaryrefslogtreecommitdiff
path: root/src/misc/crypt_des.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/crypt_des.c')
-rw-r--r--src/misc/crypt_des.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/crypt_des.c b/src/misc/crypt_des.c
index 4454a130..d7b2b15a 100644
--- a/src/misc/crypt_des.c
+++ b/src/misc/crypt_des.c
@@ -911,7 +911,7 @@ static char *_crypt_extended_r_uut(const char *_key, const char *_setting, char
return NULL;
count |= value << (i - 1) * 6;
}
- if (!count)
+ if (!count || count > 262143)
return NULL;
for (i = 5, salt = 0; i < 9; i++) {