summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-27 15:00:44 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-27 15:00:44 +0000
commit91ccdfaf9f5b8d72ef90f9a71bf1a6f7b8d09540 (patch)
tree47856406b6f45a6e59bb394208e9634b56aa6f7e
parent8fa3432256e4bb97714088b6a1fd41d365653809 (diff)
downloadhercules-91ccdfaf9f5b8d72ef90f9a71bf1a6f7b8d09540.tar.gz
hercules-91ccdfaf9f5b8d72ef90f9a71bf1a6f7b8d09540.tar.bz2
hercules-91ccdfaf9f5b8d72ef90f9a71bf1a6f7b8d09540.tar.xz
hercules-91ccdfaf9f5b8d72ef90f9a71bf1a6f7b8d09540.zip
Fixed md5 passwords not working
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13007 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--src/login/login.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 70251b7ba..db1b19020 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2008/07/27
+ * Fixed md5 passwords not working
* Possibly corrected a guild saving problem (bugreport:1908)
* Removed some leftover code that shouldn't have been merged [ultramage]
* Fixed a memory leak in mmo_auth_tosql (extra sql statement being allocated).
diff --git a/src/login/login.h b/src/login/login.h
index 8ffa06eec..7ec15464d 100644
--- a/src/login/login.h
+++ b/src/login/login.h
@@ -21,7 +21,7 @@ struct login_session_data {
char sex;
char userid[NAME_LENGTH];
- char passwd[NAME_LENGTH];
+ char passwd[32+1]; // 23+1 for plaintext, 32+1 for md5-ed passwords
int passwdenc;
char md5key[20];
uint16 md5keylen;