From bba132414527f1742dd1ca550dad5ecce94dfa40 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 21 Jan 2020 11:04:18 -0800 Subject: [PATCH] One more sanity check. --- root/root.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/root/root.cpp b/root/root.cpp index d60a4cd96..5f3b98a54 100644 --- a/root/root.cpp +++ b/root/root.cpp @@ -239,6 +239,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 peer;