mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-16 06:02:18 +02:00
drop too short follow on SSU2 packets
This commit is contained in:
parent
32ad4b4858
commit
75b1c144b4
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue