mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 13:27:17 +01: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)
|
if (!ec)
|
||||||
{
|
{
|
||||||
i2p::transport::transports.UpdateReceivedBytes (packet->len);
|
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);
|
moreBytes = socket.available(ec);
|
||||||
if (ec) break;
|
if (ec) break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue