diff options
author | shennetsind <ind@henn.et> | 2013-10-11 14:07:15 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-10-11 14:07:15 -0300 |
commit | fad3040499293b1ff4ff634680163fcab4ca5e70 (patch) | |
tree | 65fa32c8395714bc080043a9db537c33d2da9ff8 /src/login/login.h | |
parent | 231f7a4f31b27611af7006e3adc2d3c046356fd3 (diff) | |
download | hercules-fad3040499293b1ff4ff634680163fcab4ca5e70.tar.gz hercules-fad3040499293b1ff4ff634680163fcab4ca5e70.tar.bz2 hercules-fad3040499293b1ff4ff634680163fcab4ca5e70.tar.xz hercules-fad3040499293b1ff4ff634680163fcab4ca5e70.zip |
Fixed login packet 0x825
Special Thanks to Haru, Yommy.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/login/login.h')
-rw-r--r-- | src/login/login.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/login/login.h b/src/login/login.h index 8a5eabb09..0a41b803f 100644 --- a/src/login/login.h +++ b/src/login/login.h @@ -19,6 +19,7 @@ enum E_LOGINSERVER_ST // supported encryption types: 1- passwordencrypt, 2- passwordencrypt2, 3- both #define PASSWORDENC 3 +#define PASSWD_LEN 32+1 // 23+1 for plaintext, 32+1 for md5-ed passwords struct login_session_data { int account_id; @@ -27,7 +28,7 @@ struct login_session_data { char sex;// 'F','M','S' char userid[NAME_LENGTH]; - char passwd[32+1]; // 23+1 for plaintext, 32+1 for md5-ed passwords + char passwd[PASSWD_LEN]; int passwdenc; char md5key[20]; uint16 md5keylen; |