reduced memory usage

This commit is contained in:
orignal committed 2015-03-10 21:54:25 -04:00
1 parent c2edbdc487
commit d51b87e80a
4 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ namespace tunnel
CryptoPP::RandomNumberGenerator& rnd = i2p::context.GetRandomNumberGenerator ();
auto numHops = m_Config->GetNumHops ();
int numRecords = numHops <= STANDARD_NUM_RECORDS ? STANDARD_NUM_RECORDS : numHops;
I2NPMessage * msg = NewI2NPMessage ();
I2NPMessage * msg = NewI2NPShortMessage ();
*msg->GetPayload () = numRecords;
msg->len += numRecords*TUNNEL_BUILD_RECORD_SIZE + 1;