Fixed typo with wrong password length (#4262)

This commit is contained in:
naffej
2019-07-24 23:42:34 +02:00
committed by Lemongrass3110
parent d27b391c47
commit d9db877d2f

View File

@@ -333,7 +333,7 @@ static int logclif_parse_reqauth(int fd, struct login_session_data *sd, int comm
if( israwpass )
{
ShowStatus("Request for connection of %s (ip: %s)\n", sd->userid, ip);
safestrncpy(sd->passwd, password, NAME_LENGTH);
safestrncpy(sd->passwd, password, PASSWD_LENGTH);
if( login_config.use_md5_passwds )
MD5_String(sd->passwd, sd->passwd);
sd->passwdenc = 0;