diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-09-01 13:45:32 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-09-01 13:45:32 -0700 |
commit | d5e6f59004458ee2bddcaa18c6d0a8dfae2a2fc3 (patch) | |
tree | 348ea367a28f0a542b6202d359f0c2def4052a43 /node | |
parent | 22271f2a490a1f3c2ade184d758cadfe0e461544 (diff) | |
download | infinitytier-d5e6f59004458ee2bddcaa18c6d0a8dfae2a2fc3.tar.gz infinitytier-d5e6f59004458ee2bddcaa18c6d0a8dfae2a2fc3.zip |
.
Diffstat (limited to 'node')
-rw-r--r-- | node/Switch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp index 8e41c89f..aae16001 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<const uint8_t *>(data)[ZT_PACKET_FRAGMENT_IDX_FRAGMENT_INDICATOR] == ZT_PACKET_FRAGMENT_INDICATOR) { // Handle fragment ---------------------------------------------------- |