summaryrefslogtreecommitdiff
path: root/src/char_sql/char.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-21 00:19:14 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-21 00:19:14 +0000
commit5920ad3c5e0517cdb0c46845a431ca791f0d2832 (patch)
treedb351486768e15e00541112213418edc0ecaea18 /src/char_sql/char.c
parent1440cc4cc54e3d81f67aeea00f1105cf06d9dcde (diff)
downloadhercules-5920ad3c5e0517cdb0c46845a431ca791f0d2832.tar.gz
hercules-5920ad3c5e0517cdb0c46845a431ca791f0d2832.tar.bz2
hercules-5920ad3c5e0517cdb0c46845a431ca791f0d2832.tar.xz
hercules-5920ad3c5e0517cdb0c46845a431ca791f0d2832.zip
- Char server will now ignore packet 0x65 for already authentified accounts.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6206 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r--src/char_sql/char.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index c5ddc9790..ad51a2825 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -2981,7 +2981,13 @@ int parse_char(int fd) {
CREATE(session[fd]->session_data, struct char_session_data, 1);
sd = (struct char_session_data*)session[fd]->session_data;
sd->connect_until_time = 0; // unknow or illimited (not displaying on map-server)
+ } else {
+ //Received again auth packet for already authentified account?? Discard it.
+ //TODO: Perhaps log this as a hack attempt?
+ RFIFOSKIP(fd,17);
+ break;
}
+
sd->account_id = RFIFOL(fd, 2);
sd->login_id1 = RFIFOL(fd, 6);
sd->login_id2 = RFIFOL(fd, 10);