I2NP messages pool for I2CP

This commit is contained in:
orignal 2022-01-25 13:02:27 -05:00
parent 73b77c83b8
commit 40e6d675c5
2 changed files with 2 additions and 1 deletions

View file

@ -146,7 +146,7 @@ namespace client
void I2CPDestination::SendMsgTo (const uint8_t * payload, size_t len, const i2p::data::IdentHash& ident, uint32_t nonce)
{
auto msg = NewI2NPMessage ();
auto msg = m_I2NPMsgsPool.AcquireSharedMt ();
uint8_t * buf = msg->GetPayload ();
htobe32buf (buf, len);
memcpy (buf + 4, payload, len);