diff options
Diffstat (limited to 'lib/password.c')
-rw-r--r-- | lib/password.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/password.c b/lib/password.c index 6e8f0554..34abf6e7 100644 --- a/lib/password.c +++ b/lib/password.c @@ -41,8 +41,8 @@ int get_salt(char *salt, char *algo) bits = ((buf[i]+(buf[i+1]<<8)) >> (bitpos&7)) & 0x3f; bits += 46; - if (bits > 57) bits += 8; - if (bits > 90) bits += 7; + if (bits > 57) bits += 7; + if (bits > 90) bits += 6; salt[i] = bits; } |