ioctl: add fallback for new time64 SIOCGSTAMP[NS]
[musl] / src / crypt / crypt_sha512.c
index 1294e98..39970ca 100644 (file)
@@ -252,7 +252,7 @@ static char *sha512crypt(const char *key, const char *setting, char *output)
                if (u < ROUNDS_MIN)
                        r = ROUNDS_MIN;
                else if (u > ROUNDS_MAX)
-                       r = ROUNDS_MAX;
+                       return 0;
                else
                        r = u;
                /* needed when rounds is zero prefixed or out of bounds */