From d5e6f59004458ee2bddcaa18c6d0a8dfae2a2fc3 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 1 Sep 2016 13:45:32 -0700 Subject: [PATCH] . --- node/Switch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/Switch.cpp b/node/Switch.cpp index 8e41c89f7..aae16001b 100644 --- a/node/Switch.cpp +++ b/node/Switch.cpp @@ -94,7 +94,7 @@ void Switch::onRemotePacket(const InetAddress &localAddr,const InetAddress &from } } - } else if (len > ZT_PROTO_MIN_FRAGMENT_LENGTH) { // min length check is important! + } else if (len > ZT_PROTO_MIN_FRAGMENT_LENGTH) { // SECURITY: min length check is important since we do some C-style stuff below! if (reinterpret_cast(data)[ZT_PACKET_FRAGMENT_IDX_FRAGMENT_INDICATOR] == ZT_PACKET_FRAGMENT_INDICATOR) { // Handle fragment ----------------------------------------------------