mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 21:37:17 +01:00
process complete message
This commit is contained in:
parent
ecd3a49d48
commit
8feca6874a
2
I2CP.cpp
2
I2CP.cpp
|
@ -167,7 +167,7 @@ namespace client
|
|||
size_t offset = 0; // from m_Buffer
|
||||
if (m_NextMessage)
|
||||
{
|
||||
if (m_NextMessageOffset + bytes_transferred <= m_NextMessageLen)
|
||||
if (m_NextMessageOffset + bytes_transferred < m_NextMessageLen)
|
||||
{
|
||||
memcpy (m_NextMessage + m_NextMessageOffset, m_Buffer, bytes_transferred);
|
||||
m_NextMessageOffset += bytes_transferred;
|
||||
|
|
Loading…
Reference in a new issue