diff options
author | Haru <haru@dotalux.com> | 2014-07-09 14:29:04 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-07-09 14:33:39 +0200 |
commit | 8a1ad0673904557bc6572df0abecb25f2129df1b (patch) | |
tree | 07636ca18ee98c4793011c5bfc84a1a048af51a3 /src/login | |
parent | d3582fcef6d3f07fa758a41bc06ff647bf545315 (diff) | |
download | hercules-8a1ad0673904557bc6572df0abecb25f2129df1b.tar.gz hercules-8a1ad0673904557bc6572df0abecb25f2129df1b.tar.bz2 hercules-8a1ad0673904557bc6572df0abecb25f2129df1b.tar.xz hercules-8a1ad0673904557bc6572df0abecb25f2129df1b.zip |
Fixed an issue in the 'Invalid client hash' console message
- 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>
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/login.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/login/login.c b/src/login/login.c index 1db92fda6..18c9d90cf 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -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; } } |