sources/network/udpsocket.cpp

branch
protocol5
changeset 171
d0fba0d7ad03
parent 159
970d58a01e8b
child 172
0b0bc8045d28
child 195
be953e1621d9
--- a/sources/network/udpsocket.cpp	Sat Jul 23 12:35:43 2016 +0300
+++ b/sources/network/udpsocket.cpp	Wed Jan 27 12:34:26 2021 +0200
@@ -129,12 +129,6 @@
 		return false;
 	}
 
-	if (length < 4)
-	{
-		m_error = "The server sent a too short packet";
-		return false;
-	}
-
 	unsigned char decodedPacket[MAX_DATAGRAM_LENGTH];
 	int decodedLength = sizeof decodedPacket;
 	HUFFMAN_Decode (reinterpret_cast<unsigned char*> (HuffmanBuffer),

mercurial