mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
ocpasswd: corrected fallback to MD5 crypt
This commit is contained in:
@@ -83,7 +83,7 @@ crypt_int(const char *fpasswd, const char *username, const char *groupname,
|
||||
|
||||
cr_passwd = crypt(passwd, salt);
|
||||
if (cr_passwd == NULL) { /* try MD5 */
|
||||
salt[1] = 1;
|
||||
salt[1] = '1';
|
||||
cr_passwd = crypt(passwd, salt);
|
||||
}
|
||||
if (cr_passwd == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user