summaryrefslogtreecommitdiff
path: root/src/ladmin/ladmin.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-09 13:05:54 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-09 13:05:54 +0000
commit16675230f6fff2b30b48b83e395e273919b5515f (patch)
treeb55bc1f455b99e7dd9635cd06c9aae9c93be1ac2 /src/ladmin/ladmin.c
parentc5c74a00ce7bbc152f20066c22952770535dd7f5 (diff)
downloadhercules-16675230f6fff2b30b48b83e395e273919b5515f.tar.gz
hercules-16675230f6fff2b30b48b83e395e273919b5515f.tar.bz2
hercules-16675230f6fff2b30b48b83e395e273919b5515f.tar.xz
hercules-16675230f6fff2b30b48b83e395e273919b5515f.zip
Fixed login printing raw passwdenc passwords to console (bugreport:826).
Added strlib function bin2hex(). Cleaned up the md5calc interface a bit. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13055 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/ladmin/ladmin.c')
-rw-r--r--src/ladmin/ladmin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ladmin/ladmin.c b/src/ladmin/ladmin.c
index 56e08bde5..3f02a240a 100644
--- a/src/ladmin/ladmin.c
+++ b/src/ladmin/ladmin.c
@@ -2343,7 +2343,7 @@ int parse_fromlogin(int fd)
strncpy(md5str, loginserveradminpassword, sizeof(loginserveradminpassword));
strcat(md5str, (const char*)RFIFOP(fd,4));
}
- MD5_String2binary(md5str, md5bin);
+ MD5_Binary(md5str, md5bin);
WFIFOW(login_fd,0) = 0x7918; // Request for administation login (encrypted password)
WFIFOW(login_fd,2) = passenc; // Encrypted type
memcpy(WFIFOP(login_fd,4), md5bin, 16);