mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-31 00:34:20 +00:00
drop too short follow on SSU2 packets
This commit is contained in:
parent
32ad4b4858
commit
75b1c144b4
@ -377,7 +377,10 @@ namespace transport
|
||||
if (!ec)
|
||||
{
|
||||
i2p::transport::transports.UpdateReceivedBytes (packet->len);
|
||||
packets.push_back (packet);
|
||||
if (packet->len >= SSU2_MIN_RECEIVED_PACKET_SIZE)
|
||||
packets.push_back (packet);
|
||||
else // drop too short packets
|
||||
m_PacketsPool.ReleaseMt (packet);
|
||||
moreBytes = socket.available(ec);
|
||||
if (ec) break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user