Revert "backport network security fix"

Someone should analyze whether this actually is a
security fix.
Günther Brammer 2011-10-10 21:37:11 +02:00
parent 408eba7ba6
commit d084c05841
1 changed files with 0 additions and 5 deletions

View File

@ -806,11 +806,6 @@ bool C4Network2IO::HandlePacket(const C4NetIOPacket &rPacket, C4Network2IOConnec
{
// security: add connection reference
if (!pConn) return false; pConn->AddRef();
// accept only PID_Conn and PID_Ping on non-accepted connections
if(!pConn->isHalfAccepted())
if(rPacket.getStatus() != PID_Conn && rPacket.getStatus() != PID_Conn)
return false;
// unpack packet (yet another no-idea-why-it's-needed-cast)
C4IDPacket Pkt; C4PacketBase &PktB = Pkt;