Browse Source

Merge commit 'bba132414527f1742dd1ca550dad5ecce94dfa40' into edge

Adam Ierymenko 5 years ago
parent
commit
5aae5f95bf
1 changed files with 3 additions and 0 deletions
  1. 3 0
      root/root.cpp

+ 3 - 0
root/root.cpp

@@ -240,6 +240,9 @@ static void handlePacket(const int v4s,const int v6s,const InetAddress *const ip
 
 	s_inputRate.log(now,pkt.size());
 
+	if ((!fragment)&&(pkt.size() < ZT_PROTO_MIN_PACKET_LENGTH))
+		return;
+
 	if ((!fragment)&&(!pkt.fragmented())&&(dest == s_self.address())) {
 		SharedPtr<RootPeer> peer;