Explorar el Código

- 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
skotlex hace 19 años
padre
commit
bb9ff12f90
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      src/login_sql/login.c

+ 4 - 1
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;
 		}
 	}