summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-25 19:06:58 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-25 19:06:58 +0000
commitde8facb991270ed1a2fd3cb141ba942a675bea34 (patch)
treeba9fddfe9fd70faf4d4b278d87e3fb7e47cb0042 /src
parente7153a55c1392f478faa0522c7f62ded1c115b3a (diff)
downloadhercules-de8facb991270ed1a2fd3cb141ba942a675bea34.tar.gz
hercules-de8facb991270ed1a2fd3cb141ba942a675bea34.tar.bz2
hercules-de8facb991270ed1a2fd3cb141ba942a675bea34.tar.xz
hercules-de8facb991270ed1a2fd3cb141ba942a675bea34.zip
- Added reporting when receiving an unknown packet in login-sql before ending connection.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6276 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/login_sql/login.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c
index f8fbdf692..58fb6c92d 100644
--- a/src/login_sql/login.c
+++ b/src/login_sql/login.c
@@ -1885,9 +1885,12 @@ int parse_login(int fd) {
break;
case 0x7532:
- default:
ShowStatus ("End of connection (ip: %s)" RETCODE, ip);
session[fd]->eof = 1;
+ break;
+ default:
+ ShowStatus ("Abnormal end of connection (ip: %s): Unknown packet 0x%x " RETCODE, ip, RFIFOW(fd,0));
+ session[fd]->eof = 1;
return 0;
}
}