Update Socket.h

This commit is contained in:
sudlud
2024-07-05 08:21:20 +02:00
committed by GitHub
parent ec1eaf5b04
commit 8a00ee2942

View File

@@ -261,7 +261,7 @@ private:
const uint8 addressFamily = readPointer[13];
const uint16 len = (readPointer[14] << 8) | readPointer[15];
if (static_cast<size_type>(len+16) > packet.GetActiveSize())
if (static_cast<size_t>(len+16) > packet.GetActiveSize())
{
AsyncReadProxyHeader();
return;