- Added reporting when receiving an unknown packet in login-sql before ending connection.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6276 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex
2006-04-25 19:06:58 +00:00
parent f983dc57c3
commit bb9ff12f90

View File

@@ -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;
}
}