Skip to content

Commit

Permalink
Fixed an issue in the 'Invalid client hash' console message
Browse files Browse the repository at this point in the history
- MD5 value was incorrectly printed as int (displaying a meaningless
  number) while it's in fact a string.

Signed-off-by: Haru <haru@dotalux.com>
  • Loading branch information
MishimaHaruna committed Jul 9, 2014
1 parent d3582fc commit 8a1ad06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/login/login.c
Expand Up @@ -1047,8 +1047,9 @@ int mmo_auth(struct login_session_data* sd, bool isServer) {

for( i = 0; i < 16; i++ )
sprintf(&smd5[i * 2], "%02x", sd->client_hash[i]);
smd5[32] = '\0';

ShowNotice("Invalid client hash (account: %s, pass: %s, sent md5: %d, ip: %s)\n", sd->userid, sd->passwd, smd5, ip);
ShowNotice("Invalid client hash (account: %s, pass: %s, sent md5: %s, ip: %s)\n", sd->userid, sd->passwd, smd5, ip);
return 5;
}
}
Expand Down

0 comments on commit 8a1ad06

Please sign in to comment.