mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
check for duplicate msgID
This commit is contained in:
parent
9896570e32
commit
0dac2a74d3
@ -114,9 +114,14 @@ namespace tunnel
|
|||||||
if (!isFollowOnFragment) // create new incomlete message
|
if (!isFollowOnFragment) // create new incomlete message
|
||||||
{
|
{
|
||||||
m.nextFragmentNum = 1;
|
m.nextFragmentNum = 1;
|
||||||
auto& msg = m_IncompleteMessages[msgID];
|
auto ret = m_IncompleteMessages.insert (std::pair<uint32_t, TunnelMessageBlockEx>(msgID, m));
|
||||||
msg = m;
|
if (ret.second)
|
||||||
HandleOutOfSequenceFragment (msgID, msg);
|
HandleOutOfSequenceFragment (msgID, ret.first->second);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LogPrint (eLogError, "Incomplete message ", msgID, "already exists");
|
||||||
|
DeleteI2NPMessage (m.data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user