summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/login/login.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/login/login.c b/src/login/login.c
index 2db051807..a36502194 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -1368,6 +1368,8 @@ int parse_login(int fd)
safestrncpy(sd->userid, (char*)RFIFOP(fd,2), NAME_LENGTH);
safestrncpy(sd->passwd, (char*)RFIFOP(fd,26), NAME_LENGTH);
+ if( login_config.use_md5_passwds )
+ MD5_String(sd->passwd, sd->passwd);
sd->passwdenc = 0;
sd->version = login_config.client_version_to_connect; // hack to skip version check
server_ip = ntohl(RFIFOL(fd,54));