From de8facb991270ed1a2fd3cb141ba942a675bea34 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 25 Apr 2006 19:06:58 +0000 Subject: - 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 --- src/login_sql/login.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/login_sql') 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; } } -- cgit v1.2.3-70-g09d2